7939 Posts in 1472 Topics by 944 members
|Go to End|
22 May 2010 at 5:12am
Can you change the location of where files are uploaded to? In the documentation it says:
Parameter name Default Value Purpose
file_destination_path none DEPRECATED
22 May 2010 at 8:38am
Depends on the context. If you're using a FileDataObjectManager, which is the context of most SWFUpload usage, you can just do:
But if you're using SWFUpload elsewhere, fallback on the config:
25 May 2010 at 2:28am
I tried using the Config as you suggested, and maybe there is an updated way to do what I want now, but I was following the documentation. The file still ends up in the assets/Uploads folder.
Here is my code:
public function UploadForm()
return new Form(
"Upload your drawing files...",
'required' => 'true',
'browse_button_text' => 'Choose your file(s)'
new FormAction('doUploadSubmit', 'Send File')
25 May 2010 at 9:39am
It belongs in _config.php, not your UploadForm function. It only counts when the handleswfupload() function runs. UploadForm() is not in play when the file is written.
|Go to Top|