c# - ASP.NET picture gallery -


i wanted ask advice regarding picture gallery... users on website i'm working on should able add pictures gallery displayed on public part of website... wondering if pictures users add should go db or file system? understand adding pictures db overload , db loose on performance, wondering best way handle in asp.net? uploading pictures file system or? best solutions? :)

thanks!

in basic form need create form upload images.

<form enctype='multipart/form-data' action='handler.aspx' method="post">     <input type='file' name='image' />     <button type='submit'>submit</button> </form> 

now when user selects file , clicks on submit button file uploaded server , form submitted. after appropriate validation , file checking, can move file directory , save path , name in database.

when creating gallery read file path database , display image using img tag. set src attribute of img tag file path read database.

you should @ series file upload asp.net


Comments

Popular posts from this blog

Payment information shows nothing in one page checkout page magento -

tcpdump - How to check if server received packet (acknowledged) -