c# - Using session to store uploaded files -
Is it safe and recommended to store large uploaded files in asp.net sessions (httpsessionstate)? This scenario session will be used as a temporary repository for many file uploads and later the file will be disc / DB and the session will be excluded.
Probably there is not a good idea to store large files in memory, are equal. Keep in mind that there are some memory limitations on the session (web server process etc.) with always and with larger files / many users are likely to be more than you.
Instead, it is a workaround that is set correctly, you might only put file names and paths in session, and you can delete the file when the session item expires (To avoid simply filling the disc with litter).
Comments
Post a Comment