This topic is locked

File Uploads

9/15/2005 4:38:47 PM
PHPRunner General questions
author

hi,
I can't figure out how to set the upload directory for non-image files (like mp3's).

If I choose Database FIle, it doesn't allow me to specify where the file will be copied. Would I have to insert a hidden database field to hold filepath in addition to the actual file field??
thanks for any help
seb

Sergey Kornilov admin 9/16/2005

Hi,
you can use Document download and Document uploadview and edit types to upload any files to your server. Upload folder can be specified in View format and Edit format dialogs on Formatting tab in PHPRunner.
Also you can store files in database instead of server folder. In this case you will a BLOB field to store files and VARCHAR field to store filenames.

Select View as and Edit as type -Database filefor BLOB field, then click Edit format and View format and select VARCHAR field to save filenames to.