- Sponsor
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
File upload doesn't seem to work correctly on Safari 11 #3512
Conversation
I would just like to confirm that this does fix the problem. Also still working on older Safari versions. |
I'm glad to hear that. Unfortunately I can't reproduce this issue neither on https://blueimp.github.io/jQuery-File-Upload/ nor using test suite provided with the package. Would be nice to fix the root cause. |
- safari에서 dialog에서 선택한 파일을 업로드할 수 없는 문제 - PR 코드로 패치 함 : blueimp/jQuery-File-Upload#3512
- safari에서 dialog에서 선택한 파일을 업로드할 수 없는 문제 - PR 코드로 패치 함 : blueimp/jQuery-File-Upload#3512
I can reproduce it on the upload test url (above). The main issue somehow seems like using non US-ASCII characters in the directory path causes some issues. The filename itself seems to work with non US-characters. How I reproduce it using Browserstack
The web page now displays "NotFoundError" - File type not allowed. |
I noticed this earlier this year and also filed a bug report to Apple. They have not fixed it yet. Have had no time to test with Safari 12. The issue seems to be with Drag-and-drop upload when source directory contains non-ascii characters (Finnish Ä ö etc , for example). WHen files are selected from "select files" dialog there are no issues. I fixed it by adding the following dirty hack to jquery.fileupload.js:
|
Are we sure that we're not mixing two different issues? One related to invalid chars in name, and another one related to something else (original question). As you see on my screenshots, even files like |
@psmyrdek I think there is two issue being mixed up, but the fix does apply to both of them. I've also recently seen that using drag&drop features on chrome began to fail, but is also fixed by this same fix. |
- safari에서 dialog에서 선택한 파일을 업로드할 수 없는 문제 - PR 코드로 패치 함 : blueimp/jQuery-File-Upload#3512
… d&d 파일 업로드가 실패하는 문제 수정 - blueimp/jQuery-File-Upload#3512
Sorry that I'm very late to address this issue, especially since @psmyrdek made a lot of effort to notify me by different means. Unfortunately I was not able to reproduce this with the current version of Safari (12) on the latest MacOS (10.14). Given @psmyrdek's comment here, has anyone been able to reproduce this on the demo?
The demo always runs the latest version of the project using the sample Go backend. |
… d&d 파일 업로드가 실패하는 문제 수정 - blueimp/jQuery-File-Upload#3512
I'm facing a related issue. I use the same instance of file-upload to upload multiple files. When I upload file A and upload file B afterwards, the I see other issues with webkitEntries like https://stackoverflow.com/questions/49918319/jquery-file-upload-cannot-upload-file-in-safari-11 Therefore, I agree with @psmyrdek to remove that part. |
Added changes from PR described in blueimp#3512 (comment)
Since I moved away from this issue I think it's time to close it. |
I know this is closed, but I spent a week of my life chasing this down. We are doing almost the same exact thing @FlorianDr described, albeit via the jquery.cloudinary library. Notably, we are using the default |
I've merged a pull request that removes |
I created this PR to start a discussion about reading files from file input. There are situations, where upload using Safari 11 fails, because of the data provided by function
_getSingleFileInputFiles
.I'm debugging minified version of my app on remote env (on local env everything works file) and, as you can see below,

_onAdd
function is being called with a single file, instead of array of files (property calledfiles
):As a result, further execution of this function if being canceled because

_onAdd
expects to see array - otherwise, upload fails:More detailed description of this issue can be found here - https://stackoverflow.com/questions/49918319/jquery-file-upload-cannot-upload-file-in-safari-11