Page 1 of 1

how does 'Upload File Path' work?

Posted: 04 Jan 2007, 16:55
by hazy
Hallo

Im wondaring how does 'Upload File Path' (during creating new project) work. shall i be able to upload file from my pc? can u give any example of such a path?

thnx a lot

regards.

Posted: 04 Jan 2007, 21:05
by hmackiernan
Hello Hazy:

If you have the following in your config_inc.php:
$g_file_upload_method = DISK;
then Mantis will store attachments to bugs on the local (to the server) filesystem.
[the other option is to store them in the Database]

You can configure per-project folders for each project.
In my instance I've put the absolute filepath
(example (I'm running IIS/Windows)
D:\Inetpub\wwwroot\Internal\mantis\Project_01)
for attachments for Project_01, etc.

Obviously any filesystem folders you create must be write-able by the
webserver process but probably *shouldn't* be served by the webserver unless you want the attachments to be visible outside of Mantis.

Note that the word DISK in the config file is not a string but rather a symbolic constant defined elsewhere in Mantis' internals --
WRONG:
$g_file_upload_method = "DISK";
RIGHT:
$g_file_upload_method = DISK;

This bedevilled me no end the first time I was trying to get file uploads to work.

---
I also recall [dimly] that there are configuration changes to PHP itself that you need to make to allow file uploads to work at all, irrespective of Mantis -- but I can't recall them off the top of my head now-- I'll followup if I find them.

-h