asp.net mvc - Retrieving previously uploaded file -


i wondering if possible in mvc4 (.net 4.5) upload file server , save memory. in separate form post, collect file , deal @ point.

i need able upload file on 1 part of page , able submit form details on another, able access file have uploaded. logical reasons, cannot have file posting @ same time on main form. must separated.

while store file in memory session, there few risks in doing so:

  • what if resets app pool or web server? data lost
  • can user upload large file? lots of small files uploaded? need make sure can handle memory requirement

if these aren't concerns, feel free store file in session:

session["uploadedfile"] = somebytearray; 

if these concerns, suggest:

  • store file on disk , fetch when need to
  • store data in session database

Comments

Popular posts from this blog

html - How to style widget with post count different than without post count -

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

IIS->Tomcat Redirect: multiple worker with default -