Is it possible to create a file outside the project folder?
A yes/no question basically.
This is the code I currently use to create and store files.
When the
StoragePath
is "uploads", it creates an upload
directory within my project folder
.
5 Replies
Yes
Yes
Damnit. I tried to use
@"D:\UploadedFiles";
now as StoragePath
but it does not create the directory and it does not create the file.
I think this issue arises due to my use of Docker 😓 .correct. if this runs inside a container, there is no "D:" drive at all
the container is like a lightweight linux VM
you'd need to map a volume on your host to the container, then access it with the container path
That's indeed the solution! I almost gave up last night out of frustration. Gonna work on this anytime soon so thank you for your reply.