c# - Saving temporary image file in a session -
there user registration module requires users’ logo upload before register. i’m facing problem of store uploaded image, because @ time user uploading logo, actual user item not created.
as solution that, can think of saving uploaded image (until create actual user item) in session variable. idea in terms of performance , longtime use of system?
sounds bad idea. using session state adversely affect ability scale application , putting large binary blobs session put significant memory pressure on application. better solution store images temp area in file system , implement regular sweep function clear out uploaded images uploaded users didn't convert registered users (for example, images more day old). obviously, when user complete registration move image out of temporary storage.
Comments
Post a Comment