Thread: [openupload-devel] downloaded files are corrupted
Status: Beta
Brought to you by:
tsdogs
|
From: Leonel I. <Leo...@co...> - 2013-01-14 17:30:59
|
Hi: I have my openupload server running. I am able to do mostly everything, but when I try to open a file that was downloaded following the link included in the notification emails (created by openupload after a file is uploaded) I get a message telling me that the file is corrupted or damaged. If I open the file directly from the data directory in the server I get no such error. What could be happening? Leonel Ibarra Dept. Systems Support Technician County of Imperial (760) 482-4232 |
|
From: Alessandro B. <ts...@br...> - 2013-01-15 20:13:35
|
Il 2013-01-14 18:30 Leonel Ibarra ha scritto: > Hi: > > I have my openupload server running. I am able to do mostly > everything, but when I try to open a file that was downloaded > following the link included in the notification emails (created by > openupload after a file is uploaded) I get a message telling me that > the file is corrupted or damaged. > > If I open the file directly from the data directory in the server I > get no such error. > > What could be happening? > Have you tried opening the file with a text editor? If the size differs, usually it means that openupload had an error while serving the file. That error probably is in the file itself. Also check the logs. Alessandro |
|
From: Leonel I. <Leo...@co...> - 2013-01-15 22:32:10
|
Thanks for your response Alessandro. I have checked my Openupload server's Logs. I find no error nor warning there. When I upload a file "uploadconfirm" shows up in the logs, when I download a file "serveFile" shows up, both display "ALLOW" also. I tried uloading different kinds of files like TXT, PDF, JPG, PNG, DOCX and XLS. I had no problem with PDFs nor TXTs, but had the same "corrupted file" message when opening them with word, excel or a picture viewer (the default program assigned to the file) I am able to open all of the files with "vi" (text editor) of course, and found some inconsistencies between files. This is what I found: When I upload a file to my openupload server, the file in the server and the file at the local computer are exactly the same number of characters and lines (according to vi). When I download the file from openupload server, the downloaded file is different from the original one in the number of lines but with the same number of characters (according to vi). This happens with all of the files: PDF, XLSX, DOCX, TXT, etc. Maybe with a pdf file there's no problem, but word and excel seem to have a problem with that. Everytime I download the same file from my openupload server and open it with vi, the number of characters and lines are consistent, but they are different from the one on my server. I don't know if this is the cause to my problem or if discrepancies in the number of lines are acceptable as long as the number of characters remain the same. I use MSOffice 2007, windows 7, my server is a windows server 2003. I am using apache with mysql and php. Thanks for your help -----Original Message----- From: Alessandro Briosi [mailto:ts...@br...] Sent: Tuesday, January 15, 2013 12:13 PM To: OpenUpload Delvel and General talk Subject: Re: [openupload-devel] downloaded files are corrupted Il 2013-01-14 18:30 Leonel Ibarra ha scritto: > Hi: > > I have my openupload server running. I am able to do mostly > everything, but when I try to open a file that was downloaded > following the link included in the notification emails (created by > openupload after a file is uploaded) I get a message telling me that > the file is corrupted or damaged. > > If I open the file directly from the data directory in the server I > get no such error. > > What could be happening? > Have you tried opening the file with a text editor? If the size differs, usually it means that openupload had an error while serving the file. That error probably is in the file itself. Also check the logs. Alessandro ------------------------------------------------------------------------------ Master SQL Server Development, Administration, T-SQL, SSAS, SSIS, SSRS and more. Get SQL Server skills now (including 2012) with LearnDevNow - 200+ hours of step-by-step video tutorials by Microsoft MVPs and experts. SALE $99.99 this month only - learn more at: http://p.sf.net/sfu/learnmore_122512 _______________________________________________ Openupload-devel mailing list Ope...@li... https://lists.sourceforge.net/lists/listinfo/openupload-devel |
|
From: Alessandro B. <ts...@br...> - 2013-01-16 20:18:17
|
Il 2013-01-15 23:32 Leonel Ibarra ha scritto: > Thanks for your response Alessandro. > > I have checked my Openupload server's Logs. I find no error nor > warning there. When I upload a file "uploadconfirm" shows up in the > logs, when I download a file "serveFile" shows up, both display > "ALLOW" also. > > I tried uloading different kinds of files like TXT, PDF, JPG, PNG, > DOCX and XLS. I had no problem with PDFs nor TXTs, but had the same > "corrupted file" message when opening them with word, excel or a > picture viewer (the default program assigned to the file) > > I am able to open all of the files with "vi" (text editor) of course, > and found some inconsistencies between files. This is what I found: > > When I upload a file to my openupload server, the file in the server > and the file at the local computer are exactly the same number of > characters and lines (according to vi). > > When I download the file from openupload server, the downloaded file > is different from the original one in the number of lines but with > the > same number of characters (according to vi). This happens with all of > the files: PDF, XLSX, DOCX, TXT, etc. Maybe with a pdf file there's > no > problem, but word and excel seem to have a problem with that. > > Everytime I download the same file from my openupload server and open > it with vi, the number of characters and lines are consistent, but > they are different from the one on my server. I don't know if this is > the cause to my problem or if discrepancies in the number of lines > are > acceptable as long as the number of characters remain the same. > > I use MSOffice 2007, windows 7, my server is a windows server 2003. I > am using apache with mysql and php. > > Thanks for your help > > > > I have absolutely no idea on why it should change the content of the files. Have you tried using different browsers? What about antivirus software? insthead of vi, please use the diff utility to check if the file is the same. have you modified any part of OpenUpload? It seems it's sending some extra character but would not know where. could you try uploading a small txt file and then downloading it and attach both of them in an e-mail so I can analize them? Alessandro |
|
From: Leonel I. <Leo...@co...> - 2013-01-17 16:29:32
Attachments:
php(downloaded).ini
php.ini
|
Hi Alessandro: Thanks again for your help. I used the diff utility as you suggested and indeed found a difference. It the files that I download from the server have some HTML tags added, it mentions main.css. I did make some changes to OpenUpload. I am using Microsoft Expression Web 4 to edit my openupload site. Once I was editing the main.css file, and then I noticed there was an option that said "apply css file to all the site" (or something like that) and I clicked on it. I noticed that after this, when viewing the source code for my openupload pages, there were some extra lines at the begining with "include main.css" instruction, but I never thought it was going to affect the files I was uploading to the data directory. Now, according to what I've seen, this line isn't added to the files when they are uploaded, it does it to the files when they are downloaded, because the files in my openupload's server "data" directory are fine. I am attaching the files for you to see what I'm talking about. So I have to find out how to "undo" this process in Expression Web 4. Thanks a lot for your help. Leonel -----Original Message----- From: Alessandro Briosi [mailto:ts...@br...] Sent: Wednesday, January 16, 2013 12:18 PM To: OpenUpload Delvel and General talk Subject: Re: [openupload-devel] downloaded files are corrupted Il 2013-01-15 23:32 Leonel Ibarra ha scritto: > Thanks for your response Alessandro. > > I have checked my Openupload server's Logs. I find no error nor > warning there. When I upload a file "uploadconfirm" shows up in the > logs, when I download a file "serveFile" shows up, both display > "ALLOW" also. > > I tried uloading different kinds of files like TXT, PDF, JPG, PNG, > DOCX and XLS. I had no problem with PDFs nor TXTs, but had the same > "corrupted file" message when opening them with word, excel or a > picture viewer (the default program assigned to the file) > > I am able to open all of the files with "vi" (text editor) of course, > and found some inconsistencies between files. This is what I found: > > When I upload a file to my openupload server, the file in the server > and the file at the local computer are exactly the same number of > characters and lines (according to vi). > > When I download the file from openupload server, the downloaded file > is different from the original one in the number of lines but with the > same number of characters (according to vi). This happens with all of > the files: PDF, XLSX, DOCX, TXT, etc. Maybe with a pdf file there's no > problem, but word and excel seem to have a problem with that. > > Everytime I download the same file from my openupload server and open > it with vi, the number of characters and lines are consistent, but > they are different from the one on my server. I don't know if this is > the cause to my problem or if discrepancies in the number of lines are > acceptable as long as the number of characters remain the same. > > I use MSOffice 2007, windows 7, my server is a windows server 2003. I > am using apache with mysql and php. > > Thanks for your help > > > > I have absolutely no idea on why it should change the content of the files. Have you tried using different browsers? What about antivirus software? insthead of vi, please use the diff utility to check if the file is the same. have you modified any part of OpenUpload? It seems it's sending some extra character but would not know where. could you try uploading a small txt file and then downloading it and attach both of them in an e-mail so I can analize them? Alessandro ------------------------------------------------------------------------------ Master Java SE, Java EE, Eclipse, Spring, Hibernate, JavaScript, jQuery and much more. Keep your Java skills current with LearnJavaNow - 200+ hours of step-by-step video tutorials by Java experts. SALE $49.99 this month only -- learn more at: http://p.sf.net/sfu/learnmore_122612 _______________________________________________ Openupload-devel mailing list Ope...@li... https://lists.sourceforge.net/lists/listinfo/openupload-devel |
|
From: Alessandro B. <ts...@br...> - 2013-01-17 22:34:57
|
Il 2013-01-17 17:29 Leonel Ibarra ha scritto: > Hi Alessandro: > > Thanks again for your help. I used the diff utility as you suggested > and indeed found a difference. > > It the files that I download from the server have some HTML tags > added, it mentions main.css. > > I did make some changes to OpenUpload. I am using Microsoft > Expression Web 4 to edit my openupload site. Once I was editing the > main.css file, and then I noticed there was an option that said > "apply > css file to all the site" (or something like that) and I clicked on > it. I noticed that after this, when viewing the source code for my > openupload pages, there were some extra lines at the begining with > "include main.css" instruction, but I never thought it was going to > affect the files I was uploading to the data directory. > > Now, according to what I've seen, this line isn't added to the files > when they are uploaded, it does it to the files when they are > downloaded, because the files in my openupload's server "data" > directory are fine. > > I am attaching the files for you to see what I'm talking about. > > So I have to find out how to "undo" this process in Expression Web 4. > Yes, you actually "screwed" the whole app. If you haven't changed too much you'd better restore the original files from openupload At least all .php files. Unless you want to change application behaviour you'd better only change .tpl files. Alessandro |