When I want to upload a video to my website, throw UIWebview using <input file="type"/>
the files are picked from the Photo Library and the videos are compressed before being sent to the server. This works great in UIWebview! But now is there a way to get rid of that compression? a have a good quality video sent to the server.
- I try with multiple libraries like dropzonejs, file-uploader but no one seems to work in UIWebview when the videos are uploaded from the Photo Library (the compression step is skipped and the upload fail because of a file size that is equal to 0).
Strangely everything works fine in every case (UIWebview, Safari), when the video is uploaded from another app like (Documents) no compression done in any case so the video is sent directly.
What I also try:
Look on iPad to disable some preferences in Photos and found nothing.
I just take the simple example: http://www.dropzonejs.com/examples/simple.html and did some testing and it seems that dropzone.js works well in Safari but not when accessed throw UIWebView.
Load the vimeo website in UIWebview and try to upload video, it also fail saying that the video size is not valid (0B)
Any idea on how can I avoid the compression step when the photo is picked from the Photo Library using the simple <input file="type"/>
which is the only one that worked with Photo Library in UIWebview?
Or is there a way to use libraries like dropzone.js and upload file throw UIWebview. Moreover every type of file works (music and images). It is only videos that are not correctly handled in UIWebview.
swift
tag? – werediverswift
tag and add something likehtml
,javascript
,mobile-safari
, etc. – werediver