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
Thanks!
Change the upload default folder
- mistermind
- Posts: 131
- Joined: 15 Sep 2007, 01:33
- Contact:
Change the upload default folder
SELECT * FROM users WHERE clue > 0
0 rows returned.
0 rows returned.
- mistermind
- Posts: 131
- Joined: 15 Sep 2007, 01:33
- Contact:
Found a solution to question 1
There is a file under \Smartfox\Server\webserver\webapps\default called Upload.py. There you will find this line:
As you can see its related to a local path. Just change to a different local path in your server and voi'la
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
SELECT * FROM users WHERE clue > 0
0 rows returned.
0 rows returned.
Return to “Server Side Extension Development”
Who is online
Users browsing this forum: No registered users and 15 guests