Attachments uploading as 0 size

Get help from other users here.

Moderators: Developer, Contributor

Post Reply
jelv
Posts: 16
Joined: 23 Feb 2005, 11:35
Location: Wiltshire, UK

Attachments uploading as 0 size

Post by jelv »

Using Mantis 0.19.2 - uploads to file (not to database)

If I upload a file to a bug it appears to upload correctly (no error given). However the size of the file shows as zero bytes and it cannot be accessed.

If I find the size of the file from looking at it's properties in the upload directory and directly edit this in to the database, the attached file can now be accessed.

Any ideas?

(SBS 2003 server, W2K client using Firefox 1.0.3)
John
thraxisp
Developer
Posts: 509
Joined: 14 Feb 2005, 03:38
Location: Ottawa, Canada
Contact:

Post by thraxisp »

Can you file an issue on this in the tracker at http://bugs.mantisbt.org/ ?

In 0.19.2, it was possible to get hidden failures like this when the file was partially uploaded or disallowed by the browser. These should be fixed in 1.0.0.
jelv
Posts: 16
Joined: 23 Feb 2005, 11:35
Location: Wiltshire, UK

Post by jelv »

John
atomoid
Posts: 108
Joined: 18 Aug 2005, 00:46
Location: santa cruz, ca

Post by atomoid »

This can also happen if you change the path on the server to the files.

For instance, our server path to the mantis downloads (stored using "DISK" method) is
/home/httpd/mantis/files/ ...but we switched over to:
/data/httpd/mantis/files/

as a result, all the file attachemnts broke (download as zero k) since the path is stored as absolute in the sql db table.
so to fix this, it seems necessary to edit the sql db itself by replacing all the path data to reflect the new path....

Is there any better way around this problem?
It would be more sueful to be able to store the path data as relative rather than absolute. Can this be done?
Post Reply