Last post Dec 12, 2017 08:33 AM by Eric Du
Dec 05, 2017 03:27 AM|poornima82|LINK
I want to attach the line item for each product one by one with delete option.
Here I am uploading bulk of files working well. But I want to upload one file at a time. If I upload next file it should not overwrite the existing file instead it should append below one by one and it should be removable
Please view the below attachment
Dec 05, 2017 07:52 AM|Eric Du|LINK
According to your description, i think you could save the uploaded file in the folder then show it in the page, then continue to upload the next file. Here is a sample about how to achieve this, please check:
Upload files, save in folder and display in ASP.Net GridView with Download and Delete option:
Also you could store uploaded files name in session and save files in server, show them in page load event, then add the delete function after these names.
Dec 05, 2017 08:19 AM|poornima82|LINK
Thanks for your reply.
The existing programming i am storing all files in a folder in root path then storing it in a Database for each product.
I am attaching 2 items for a Product(879).Item 879_1 has 3 attachments and Item 879_2 has 6 items.
Please see the below image,
But here my problem is, at a time i can able to select multiple files and storing in a folder. Now the requirement is , to attach files one by one with delete option and display images or files one below another. In my existing one, if I select one image
it overwrites the existing image.
Dec 12, 2017 08:33 AM|Eric Du|LINK
According to your description, I hope you could check the tutorial in my previous post. You could upload file one by one in that sample, then could delete it one by one.
You could replace delete button with image.
Here is the result of that sample:
Please check this sample(https://www.aspsnippets.com/Articles/Upload-files-save-in-folder-and-display-in-ASPNet-GridView-with-Download-and-Delete-option.aspx) again.