Change the upload default folder

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

Moderators: Lapo, Bax

User avatar
mistermind
Posts: 131
Joined: 15 Sep 2007, 01:33
Contact:

Change the upload default folder

Postby mistermind » 05 Oct 2010, 21:25

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.
User avatar
mistermind
Posts: 131
Joined: 15 Sep 2007, 01:33
Contact:

Postby mistermind » 06 Oct 2010, 22:03

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.

Return to “Server Side Extension Development”

Who is online

Users browsing this forum: No registered users and 19 guests