|
Files not uploading in Safari on Apple computers
Last post 01-29-2014, 7:19 AM by shanface. 19 replies.
-
01-13-2012, 3:33 AM |
-
MarjaR
-
-
-
Joined on 04-23-2009
-
-
Posts 59
-
-
|
Files not uploading in Safari on Apple computers
Our Apple users are complaining that files don't get uploaded. When using any browser on a Windows computer, everything is working just fine. This week I bought an Apple MacBook Air laptop to be able to test things like this myself, and I can confirm... files don't get uploaded when working with Safari. I downloaded and installed the latest Ajax Uploader DLL just now, to make sure I'm not using an older Ajax Uploader version, and the issue is still the same. Most of the time the upload seems to happen: I can select one or more files to upload, and the progress bar gets filled up. But the files never arrive in the specified location on the server. And I've searched other locations on the server as well, but the files don't seem to arrive at all. Sometimes I get the following Javascript alert: "AjaxUploader global error: Flash : The upload task is interrupted io Error #2038" Like I said, the problem is specific for Apple computers. Is this a know issue? What can I do to fix this?
Regards, Marja
|
|
-
01-13-2012, 6:18 AM |
-
MarjaR
-
-
-
Joined on 04-23-2009
-
-
Posts 59
-
-
|
Re: Files not uploading in Safari on Apple computers
I've found that Error #2038 is related to the size of files to upload. We have a limit of 10 Mb and when trying to upload files larger than that, this error occurs on Apple computers.
The strange thing is that on Windows computers we get a regular alert explaining about the file size, and on Apple computers we get this weird technical error message. Why is that? Anyway, the original main problem persists: When using Safari on an Apple computer, the files don't get uploaded. Not even when they are way smaller than 10 Mb. This is specific to Safari. When using Firefox on Apple, everything is fine. What causes this weird Safari issue?
Regards, Marja
|
|
-
01-13-2012, 6:46 AM |
-
MarjaR
-
-
-
Joined on 04-23-2009
-
-
Posts 59
-
-
|
Re: Files not uploading in Safari on Apple computers
Correction the #2038 is not directly related to file size. At least not in Safari. I'm on my Apple computer now, in Safari, and when trying to upload a file of eg. 6 Mb, I get the following error (JavaScript alert): - AjaxUploader file error: About Downloads.lpdf , Flash : The upload task is interrupted! io Error #2038
- Server side error :
And below that is the html of the page my users get redirected to by the error handler in our application when an exception occurs.
Regards, Marja
|
|
-
01-13-2012, 6:50 AM |
-
MarjaR
-
-
-
Joined on 04-23-2009
-
-
Posts 59
-
-
|
Re: Files not uploading in Safari on Apple computers
For your information, the exact same error occurs in Safari when uploading a file in your demo page at http://ajaxuploader.com/Demo/multiple-files-upload.aspx.
Regards, Marja
|
|
-
01-13-2012, 7:00 AM |
-
Kenneth
-
-
-
Joined on 02-13-2008
-
-
Posts 3,886
-
-
|
Re: Files not uploading in Safari on Apple computers
Hi MarjaR, Is your site online? If so, can you send me the uploader page url and show me the full steps to reproduce this issue? I will check it and get back to you as soon as possible. Is your site using window authentication? Is your site on the load balancing, web farm, cloud environment? Can you reproduce this issue with the example below on your end? <%@ Page Language="C#" %> <%@ Register TagPrefix="CuteWebUI" Namespace="CuteWebUI" Assembly="CuteWebUI.AjaxUploader" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head id="Head1" runat="server"> <title>example</title> </head> <body> <form id="form1" runat="server"> <CuteWebUI:UploadAttachments ID="uploader1" runat="server" UploadType="iframe"> </CuteWebUI:UploadAttachments> </form> </body> </html> Regards, Ken
|
|
-
01-13-2012, 7:41 AM |
-
MarjaR
-
-
-
Joined on 04-23-2009
-
-
Posts 59
-
-
|
Re: Files not uploading in Safari on Apple computers
Our application is running in many shared hosting environments on regular Windows servers. So no load balancing, no web farm, no cloud environment or whatsoever. But as I said in a previous post: the #2038 issue is reproducable in the Ajax Uploader demo page at http://ajaxuploader.com/Demo/multiple-files-upload.aspx. Just try uploading a file of eg. 6 Mb using Safari on Mac. So I don't think you need me to upload a test page somewhere?
Regards, Marja
|
|
-
01-13-2012, 7:54 AM |
-
MarjaR
-
-
-
Joined on 04-23-2009
-
-
Posts 59
-
-
|
Re: Files not uploading in Safari on Apple computers
Source: - <%@ Page Language="vb" AutoEventWireup="false" CodeBehind="UploadTest.aspx.vb" Inherits="WebwareNET.UploadTest"
- Title="Customize the queue UI" %>
-
- <%@ Register TagPrefix="CuteWebUI" Namespace="CuteWebUI" Assembly="CuteWebUI.AjaxUploader" %>
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">
- <html xmlns="http://www.w3.org/1999/xhtml">
- <head id="Head1" runat="server">
- </head>
- <body>
- <form id="Form1" runat="server">
- <ajaxToolkit:ToolkitScriptManager ID="ToolkitScriptManager1" EnablePartialRendering="true"
- runat="server" />
- <p>
- CuteWebUI:Uploader</p>
- <CuteWebUI:Uploader ID="uploader1" AutoUseSystemTempFolder="false" TempDirectory="~/sysfiles/TempAjaxUploader/"
- runat="server">
- </CuteWebUI:Uploader>
- <p>
- CuteWebUI:UploadAttachments</p>
- <CuteWebUI:UploadAttachments ID="uploader2" AutoUseSystemTempFolder="false" TempDirectory="~/sysfiles/TempAjaxUploader/"
- UploadType="iframe" runat="server">
- </CuteWebUI:UploadAttachments>
- </form>
- </body>
- </html>
The button for the CuteWebUI:UploadAttachments uploader does nothing at all?
Regards, Marja
|
|
-
01-13-2012, 8:56 AM |
-
MarjaR
-
-
-
Joined on 04-23-2009
-
-
Posts 59
-
-
|
Re: Files not uploading in Safari on Apple computers
Some more information: - The #2038 only happens with some file types, not all.
I'm new on the Apple laptop and I don't have any files there yet. So I tried to upload a file named "About Downloads.lpdf" that is present on the laptop by default. Safari nor Firefox like that... they both present the #2038 error. When uploading eg. an image, the #2038 issue does not happen.
- As it turns out, when uploading eg. an image with Safari, there is actually a "persisted.<GUID><filename>.resx" file placed in the upload-directory. But the file does not get moved to a given non-temp directory afterwards.
When working in any other browser, uploaded files get moved (and possibly resized), but not in Safari. And that why the upload didn't seem to happen at all.
The code in my real upload page is: - <CuteWebUI:Uploader ID="Uploader1" AutoUseSystemTempFolder="false" TempDirectory="~/sysfiles/TempAjaxUploader/"
- MultipleFilesUpload="true" OnFileUploaded="AjaxUploader_FileUploaded" InsertButtonID="btnBrowse"
- ManualStartUpload="true" runat="server">
- </CuteWebUI:Uploader>
Why isn't the OnFileUploaded event triggered when working with Safari?
Regards, Marja
|
|
-
01-13-2012, 10:28 AM |
-
Kenneth
-
-
-
Joined on 02-13-2008
-
-
Posts 3,886
-
-
|
Re: Files not uploading in Safari on Apple computers
Hi MarjaR, What Mac/safari version you are testing? Did you install the flash plug-in for your safari browser? Please try the url below, does it get the same issue? Regards, Ken
|
|
-
01-13-2012, 10:41 AM |
-
MarjaR
-
-
-
Joined on 04-23-2009
-
-
Posts 59
-
-
|
Re: Files not uploading in Safari on Apple computers
Hi Ken, Did you see my last post? MarjaR: - ...
- As it turns out, when uploading eg. an image with Safari, there is actually a "persisted.<GUID><filename>.resx" file placed in the upload-directory. But the file does not get moved to a given non-temp directory afterwards.
When working in any other browser, uploaded files get moved (and possibly resized), but not in Safari. And that why the upload didn't seem to happen at all.
Why isn't the OnFileUploaded event triggered when working with Safari?
Regards, Marja
|
|
-
01-13-2012, 10:43 AM |
-
MarjaR
-
-
-
Joined on 04-23-2009
-
-
Posts 59
-
-
|
Re: Files not uploading in Safari on Apple computers
Kenneth: What Mac/safari version you are testing? Safari 5.1.1 on Mac OSX 10.7.2 Safari on Windows does not have this issue. All is well there.
Regards, Marja
|
|
-
-
01-17-2012, 6:54 AM |
-
Kenneth
-
-
-
Joined on 02-13-2008
-
-
Posts 3,886
-
-
|
Re: Files not uploading in Safari on Apple computers
Hi MarjaR, We are investigating this issue and will get back to you as soon as possible. Regards, Ken
|
|
-
01-24-2012, 5:54 AM |
-
MarjaR
-
-
-
Joined on 04-23-2009
-
-
Posts 59
-
-
|
Re: Files not uploading in Safari on Apple computers
Hi Ken, Any thought yet on this Safari/Mac issue?
Regards, Marja
|
|
-
01-24-2012, 9:05 AM |
-
01-25-2012, 4:31 AM |
-
MarjaR
-
-
-
Joined on 04-23-2009
-
-
Posts 59
-
-
|
Re: Files not uploading in Safari on Apple computers
I just tried the new build with Safari on Mac, but I still see the same issue: the file is upload to the temporary directory, but doesn't get moved to the final destination directory. And this still only happens in Safari on Mac. All other browsers are fine, even Safari on Windows.
Regards, Marja
|
|
-
01-25-2012, 9:28 PM |
-
01-26-2012, 1:46 PM |
-
MarjaR
-
-
-
Joined on 04-23-2009
-
-
Posts 59
-
-
|
Re: Files not uploading in Safari on Apple computers
I found out why it still didn't work with the new DLL in Safari on Apple (and maybe this was the problem all along): I have the Ajax Uploader in a popup window, and in that popup window I have the following JavaScript function: - function CuteWebUI_AjaxUploader_OnPostback() {
- window.filesuploaded = true;
- var submitbutton = document.getElementById('<%=btnSubmit.ClientID %>');
- submitbutton.click();
- wsRefreshOpener();
- return false;
- }
As you can see, wsRefreshOpener() is triggered as part of that routine and wsRefreshOpener called window.close() at the end of its work. The popup window then was automatically closed, and the upload turned out to be canceled right there. Now I've removed the window.close() call, and the upload correctly finishes in Safari as well. The file(s) get uploaded fine now. Strange that this client-side window.close() call was bothering Safari on Apple so much, and other browsers didn't have a problem with that. Oh well...
Regards, Marja
|
|
-
01-28-2012, 9:45 AM |
|
Re: Files not uploading in Safari on Apple computers
This was not the problem all along for sure, since some of our customers have experienced the same thing, and we do not have the uploader in a pop-up. We still have clients reporting the error after the new version, but we are still investigating to make sure they have in fact cleared their browser cache. Do we have any options to completely avoid flash/sl? I have tried setting the UploadType to IFrame, but that simply doesnt work at all, no file dialog window is opened.
|
|
-
01-29-2014, 7:19 AM |
-
shanface
-
-
-
Joined on 01-29-2014
-
-
Posts 1
-
-
|
Re: Files not uploading in Safari on Apple computers
Hi Adam, My issue is that Ajaxuploader file uploading is not working using safari browser in Windows 7 OS and Mac OS (Snow Leopard). I downloaded latest ajaxuploader from your mentioned link and test it in safari web browser in Mac OS. it is not working still and even windows 7 OS. Could you please any suggestion to solve the issue? Thanks Shan
|
|
|
|
|