954,574 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Two file with same name,how to upload?

I have a problem, i have two files with same name and it required to upload on site without renaming file both are jpg file, in one database it's my task how can i complete this task?

rozerdun
Newbie Poster
4 posts since Aug 2011
Reputation Points: 7
Solved Threads: 1
 

That's more of a test to me. Not sure if you can put two of them without changing names so the best you can do is keep the name but add a suffix
Example:
HR Document
HR Document(1) and so on

Netcode
Veteran Poster
1,021 posts since Jun 2009
Reputation Points: 43
Solved Threads: 67
 

You have to alter the names in some way. You can't have 2 files with exactly the same name in the same folder.

hericles
Practically a Posting Shark
823 posts since Nov 2007
Reputation Points: 136
Solved Threads: 167
 

hI..if your having id for your data then add your id before the image....
For reference..Refer the below article........

http://www.dotnetcode.in/StoreImageURLinDatabaseandViewtheimagethroughgridviewusingASP.Net

vijay_myl
Newbie Poster
6 posts since Jul 2011
Reputation Points: 10
Solved Threads: 0
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You
View similar articles that have also been tagged: