Re: [openupload-devel] downloaded files are corrupted
Status: Beta
Brought to you by:
tsdogs
|
From: Leonel I. <Leo...@co...> - 2013-01-17 16:29:32
|
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 |