#
Locutus
Not sure this post belongs here, but it feels most suited to be in "Architecture".
For my Photo Gallery module, I tried using IFileService to save the uploaded images. The uploading works well, as does deleting using IFileService. However, the files written by IFileService don't inherit the NTFS permissions of the directory they are uploaded to. As a result, when I tried to use the uploaded image as ImageUrl for an asp:image control, I lacked the permissions to view the image.
I suppose I could read the image into a stream using IFileService and then have the image control load the stream, but that might hurt performance.
Is this by design, or is there perhaps another way to work around this?
For my Photo Gallery module, I tried using IFileService to save the uploaded images. The uploading works well, as does deleting using IFileService. However, the files written by IFileService don't inherit the NTFS permissions of the directory they are uploaded to. As a result, when I tried to use the uploaded image as ImageUrl for an asp:image control, I lacked the permissions to view the image.
I suppose I could read the image into a stream using IFileService and then have the image control load the stream, but that might hurt performance.
Is this by design, or is there perhaps another way to work around this?