Change the upload default folder

Post here your questions about Actionscript and Java server side extensions development.

Moderators: Lapo, Bax

Post Reply
mistermind
Posts: 131
Joined: 15 Sep 2007, 01:33
Contact:

Change the upload default folder

Post by mistermind »

Hi there.
Is it possible to change the default directory where the files are uploaded to a custom folder (say, a folder located in the website)?

If not, does anyone knows a way I can move a recent uploaded file from webserver/webapps/default/uploads/ to my own custom location after I trigger the event fileUpload from handleInternalEvent?

In another possible solution, does anyone knows how can I "link" a folder located somewhere else in the server to be accessed from the website root using IIS?

If you know any of the solutions don't worry about the rest :D

Thanks!
SELECT * FROM users WHERE clue > 0
0 rows returned.
mistermind
Posts: 131
Joined: 15 Sep 2007, 01:33
Contact:

Post by mistermind »

Found a solution to question 1 :D
There is a file under \Smartfox\Server\webserver\webapps\default called Upload.py. There you will find this line:

Code: Select all

self.uploadDir = "./webserver/webapps/default/uploads/"
As you can see its related to a local path. Just change to a different local path in your server and voi'la :D
SELECT * FROM users WHERE clue > 0
0 rows returned.
Post Reply