Answered by:
AjaxFileUpload

Question
-
User-929989919 posted
Does AjaxFileUpload support Excel file uploading? Because these get corrupted or am I doing something wrong?
Wednesday, April 9, 2014 4:00 AM
Answers
-
User-929989919 posted
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
- Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
Wednesday, April 9, 2014 9:02 AM
All replies
-
User724169276 posted
Does AjaxFileUpload support Excel file uploading?yes.
these get corruptedelaborate the problem.
Wednesday, April 9, 2014 4:04 AM -
User-929989919 posted
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
Wednesday, April 9, 2014 5:09 AM -
User-929989919 posted
I also dropped the error message photo to that dropbox folder
Wednesday, April 9, 2014 5:18 AM -
User724169276 posted
xls is an old format .. try to upload xlsx file.
Wednesday, April 9, 2014 5:50 AM -
User-929989919 posted
It's the samething with old and new, but it doesn't matter because both have to work
Wednesday, April 9, 2014 8:10 AM -
User724169276 posted
palej
It's the samething with old and new, but it doesn't matter because both have to work
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.
Wednesday, April 9, 2014 8:13 AM -
User-929989919 posted
"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
Wednesday, April 9, 2014 8:23 AM -
User-929989919 posted
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?
Wednesday, April 9, 2014 8:49 AM -
User724169276 posted
lol
... can you post the codebehind (if any)?
Wednesday, April 9, 2014 8:52 AM -
User-929989919 posted
And now both works. Wtf
Wednesday, April 9, 2014 8:53 AM -
User724169276 posted
Good for you .. :D ... i think you should clean the solution and rebuild it again.
Wednesday, April 9, 2014 8:54 AM -
User-929989919 posted
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
- Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
Wednesday, April 9, 2014 9:02 AM