Re: [openupload-devel] download are incomplete
Status: Beta
Brought to you by:
tsdogs
|
From: Alessandro B. <ts...@br...> - 2009-05-07 16:54:33
|
btw: do the 2 sites use the same database and data directory? Are they on the same webserver name (i.e. www.ou.com/upload and www.ou.com/download) ? Is the temporary php upload directory on the same partition as the open upload data directory? Just a wild guess. And the data/tmp ? Is the CONFIG['multiupload'] set to at least 1? Open Upload is supposed to: 1. upload a file via standard php functions 2. move the uploaded file to the data/tmp directory so php won't delete the file at the end of the script 3. if everything is good then it will generate the new ID and move the file to the data directory with the new ID name. Something here fails. Alessandro P.S. I should add a check and raise an error if the file is not found on the filesystem. Also a few checks if the file was moved (renamed) correctly. Hester, Andy ha scritto: > I uploaded and then downloaded a .jpg file after deleting all files. The file was still only 261 bytes (download - the size in the db shows correctly). I opened the .jpg with a text editor and found this: > > <br /> > <b>Warning</b>: readfile(/usr/local/transfer/data/wn1AmL8STJ) [<a href='function.readfile'>function.readfile</a>]: failed to open stream: No such file or directory in <b>/usr/local/transfer/lib/modules/default/files.inc.php</b> on line <b>408</b><br /> > > and it is true that it is not in the data directory. I do have some file id data/tmp but they are not the size if the .jpg file. www-data has write access to the data directory: > > drwxr-xr-x 3 www-data www-data 4096 2009-05-07 10:05 data > > off to check logs... > > > > -Andy > > > > -----Original Message----- > From: Hester, Andy [mailto:And...@eu...] > Sent: Thu 5/7/2009 9:49 AM > To: ope...@li... > Subject: [openupload-devel] download are incomplete > > > I have 2 sites up, both members only. One is for outbound file transfers and one for inbound transfers (temporary). > > The inbound site seemed to be working fine until I took a day off to go to the Dr. > > Now I am getting reports that the files are being corrupted. > > I had a chance to log in this am and confirmed that while the files are uploaded correctly, the same files when downloaded are only 261 bytes. Oddly enough, I looked at the files table and found that there is a record in there that has a size of 261. Of course there are many others of varying sizes. > > Could it be stuck on a corrupt file? > > Also, I don't see the same files in the db as in the data directory? should I? > > While trying to fix this I noticed that there was a mime type plugin rule for un registered users that I hadn't noticed before. I deleted that rule on the idea that it might be causing the download to fail. The only change I've made recently that I can think of is allowing multiple uploads, bu I changed that back and that didn;t resolve the issue either. > > > Thanks for any help. > > -Andy > > ------------------------------------------------------------------------------ > The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your > production scanning environment may not be a perfect world - but thanks to > Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700 > Series Scanner you'll get full speed at 300 dpi even with all image > processing features enabled. http://p.sf.net/sfu/kodak-com > _______________________________________________ > Openupload-devel mailing list > Ope...@li... > https://lists.sourceforge.net/lists/listinfo/openupload-devel > > > > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------------ > The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your > production scanning environment may not be a perfect world - but thanks to > Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700 > Series Scanner you'll get full speed at 300 dpi even with all image > processing features enabled. http://p.sf.net/sfu/kodak-com > > > ------------------------------------------------------------------------ > > _______________________________________________ > Openupload-devel mailing list > Ope...@li... > https://lists.sourceforge.net/lists/listinfo/openupload-devel |