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)
Attachments uploading as 0 size
Moderators: Developer, Contributor
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.
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.
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?
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?