Forums Register Login

Creating new directory in the server

+Pie Number of slices to send: Send
I'm building an application that allows users to upload files into the server, but I don't want to specify a single folder to store all the files. I want to create a folder for each user, the name of the folder would be the username.

I tried to use this code:



Where "/Public/" is a directory which doesn't exist on the server, therefore I have to create it at runtime.

I think this is more a java.IO question, but as I bumped into it doing a web application I decided to post it here...

Thanks
It's fun to be me, and still legal in 9 states! Wanna see my tiny ad?
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 592 times.
Similar Threads
delete files in a driectory
Filtering File Uploaded to server
Unable To Write Image on Web Host Directory
Creating new directory in the server
Unable to write Image on Web Host Directory
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 17:00:34.