Forums

Setting the file upload path above the www folder

genegun 07 Feb, 2013
Hi,

I have setup a form where customers upload a file (doc, xls etc.). I have hear that a good way to proceed was to locate the upload folder outside of the www folder and I wondered if
1. there was any way to do this with chronoengine?
2. this uploading outside the www folder was really that important?

Thanks a lot
GreyHead 07 Feb, 2013
Hi genegun,

Yes you can upload to a folder outside the site root - provided that the Joomla! User (the server user in this case) can write to that folder. I think that you just need to set the path to point to the folder in the Upload Files action.

The advantage (and the disadvantage) is that they files are no longer accessible by using a URL.

Bob
genegun 07 Feb, 2013
Hi Bob

Thanks a lot for your answer. Yes, having them unaccessible via html is the point of me wanting them there, for security purpose.

In the form setting, I am not quote sure how to write the path to that folder since it does not follow the usual "www.mysite.com/folder" pattern. How do you figure out the path to a folder that is not in the www folder?

Thank you for your help
GreyHead 07 Feb, 2013
Hi genegun,

That depends on your server - what is the path to the site root folder?

Bob
genegun 08 Feb, 2013
Hi Bob, the site is at <!-- w --><a class="postlink" href="http://www.dmed.fr">www.dmed.fr</a><!-- w -->
genegun 08 Feb, 2013
Bob, I just figured it out (I think), I entered:
../uploads/

in the form settings and it works just fine.
Thanks a lot for helping me out.
This topic is locked and no more replies can be posted.