c# - How to change upload folder dynamicly -


i'm using backload file upload controller in customerportal build mvc4. within customerportal can add supportcalls. within supportcall can attach files. every supportcall has own guid.

the web.backload.default.config file contains default upload location of file "~/files". want file location different every supportcall. like: "~/files/d764578d-2f13-4820-bf1f-3d4427aedf22" guid differs every time.

how can achieve that?

i found answer question here : https://github.com/blackcity/backload/wiki/example-06

<form id="fileupload"        action="/backload/uploadhandler"        method="post"        enctype="multipart/form-data">      <input type="hidden"             name="objectcontext"             value="@html.viewbag.id" /> </form>` 

just had add hidden field id


Comments

Popular posts from this blog

Unable to remove the www from url on https using .htaccess -