and IIS 7 installed. It doesn't work on production environment and development environment. The file is just corrupted. Here's the before and after ajaxfileupload files:
"It's the samething with old and new" I tested it out before, and I tested it again. It has to do something with the content, because some files work and some doesn't
Now I know what is the deal, the filename can't contain any skandinavian letters (ä,ö etc). How the hell I fix this? :) or can I set some sort of error to onUploadStarted or something like that
None
0 Points
10 Posts
AjaxFileUpload
Apr 09, 2014 04:00 AM|palej|LINK
Does AjaxFileUpload support Excel file uploading? Because these get corrupted or am I doing something wrong?
excel AjaxFileUpload
Star
13653 Points
5480 Posts
Re: AjaxFileUpload
Apr 09, 2014 04:04 AM|Ashim Chatterjee|LINK
yes.
elaborate the problem.
excel AjaxFileUpload
None
0 Points
10 Posts
Re: AjaxFileUpload
Apr 09, 2014 05:09 AM|palej|LINK
I have <asp:ToolkitScriptManager runat="Server" ID="tSM" /> on a page
and this
<asp:AjaxFileUpload ID="aFileUpload" runat="server" AllowedFileTypes="txt,pdf,doc,docx,ppt,xls,xlsx,html,msg"
MaximumNumberOfFiles="10" OnUploadComplete="aFileUpload_UploadComplete" OnClientUploadComplete="UploadComplete" />
and this on web config
<system.webServer>
<modules runAllManagedModulesForAllRequests="true" />
<!--IIS7-->
<validation validateIntegratedModeConfiguration="false" />
<handlers>
<add name="AjaxFileUploadHandler" verb="*"
path="AjaxFileUploadHandler.axd"
type="AjaxControlToolkit.AjaxFileUploadHandler,
AjaxControlToolkit"/>
</handlers>
<!--OLDER
<httpHandlers>
<add verb="*" path="AjaxFileUploadHandler.axd"
type="AjaxControlToolkit.AjaxFileUploadHandler,
AjaxControlToolkit"/>
</httpHandlers>-->
</system.webServer>
and IIS 7 installed. It doesn't work on production environment and development environment. The file is just corrupted. Here's the before and after ajaxfileupload files:
https://www.dropbox.com/sh/84718k1y1sjcrh0/t0OAardsQF
But I created a second dummy excel with text on first row only, that worked, but anything more complex didn't work like in dropbox example?
t.Pauli
excel AjaxFileUpload
None
0 Points
10 Posts
Re: AjaxFileUpload
Apr 09, 2014 05:18 AM|palej|LINK
I also dropped the error message photo to that dropbox folder
excel AjaxFileUpload
Star
13653 Points
5480 Posts
Re: AjaxFileUpload
Apr 09, 2014 05:50 AM|Ashim Chatterjee|LINK
xls is an old format .. try to upload xlsx file.
excel AjaxFileUpload
None
0 Points
10 Posts
Re: AjaxFileUpload
Apr 09, 2014 08:10 AM|palej|LINK
It's the samething with old and new, but it doesn't matter because both have to work
excel AjaxFileUpload
Star
13653 Points
5480 Posts
Re: AjaxFileUpload
Apr 09, 2014 08:13 AM|Ashim Chatterjee|LINK
believe me in this brother.i have faced many problems with old excel (xls) compatibility issues ,so suggested to give it a try with the new one.
excel AjaxFileUpload
None
0 Points
10 Posts
Re: AjaxFileUpload
Apr 09, 2014 08:23 AM|palej|LINK
"It's the samething with old and new" I tested it out before, and I tested it again. It has to do something with the content, because some files work and some doesn't
excel AjaxFileUpload
None
0 Points
10 Posts
Re: AjaxFileUpload
Apr 09, 2014 08:49 AM|palej|LINK
Test it yourself,
here are the files, both from originally same file:
https://www.dropbox.com/sh/84718k1y1sjcrh0/t0OAardsQF
This doesn't works.xlsx
this does work.xlsx
Both works before uploading and after uploaded and opening the uploaded file the other one doesn't work. Wtf?
excel AjaxFileUpload
Star
13653 Points
5480 Posts
Re: AjaxFileUpload
Apr 09, 2014 08:52 AM|Ashim Chatterjee|LINK
lol
... can you post the codebehind (if any)?
excel AjaxFileUpload
None
0 Points
10 Posts
Re: AjaxFileUpload
Apr 09, 2014 08:53 AM|palej|LINK
And now both works. Wtf
excel AjaxFileUpload
Star
13653 Points
5480 Posts
Re: AjaxFileUpload
Apr 09, 2014 08:54 AM|Ashim Chatterjee|LINK
Good for you .. :D ... i think you should clean the solution and rebuild it again.
excel AjaxFileUpload
None
0 Points
10 Posts
Re: AjaxFileUpload
Apr 09, 2014 09:02 AM|palej|LINK
Now I know what is the deal, the filename can't contain any skandinavian letters (ä,ö etc). How the hell I fix this? :) or can I set some sort of error to onUploadStarted or something like that
excel AjaxFileUpload