1,105,288 Community Members

Two file with same name,how to upload?

Member Avatar
rozerdun
Newbie Poster
4 posts since Aug 2011
Reputation Points: -3 [?]
Q&As Helped to Solve: 1 [?]
Skill Endorsements: 0 [?]
 
1
 

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?

Member Avatar
Netcode
Veteran Poster
1,049 posts since Jun 2009
Reputation Points: 33 [?]
Q&As Helped to Solve: 86 [?]
Skill Endorsements: 8 [?]
 
0
 

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

Member Avatar
hericles
Veteran Poster
1,078 posts since Nov 2007
Reputation Points: 98 [?]
Q&As Helped to Solve: 232 [?]
Skill Endorsements: 14 [?]
Featured
 
1
 

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

Member Avatar
vijay_myl
Newbie Poster
6 posts since Jul 2011
Reputation Points: 0 [?]
Q&As Helped to Solve: 0 [?]
Skill Endorsements: 0 [?]
 
0
 

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

You
This article has been dead for over three months: Start a new discussion instead
Post:
Start New Discussion
View similar articles that have also been tagged: