We're a community of 1076K IT Pros here for help, advice, solutions, professional growth and fun. Join us!
1,075,987 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Start New Discussion Reply to this Discussion

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?

4
Contributors
3
Replies
2 Weeks
Discussion Span
1 Year Ago
Last Updated
4
Views
rozerdun
Newbie Poster
4 posts since Aug 2011
Reputation Points: 7
Solved Threads: 1
Skill Endorsements: 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

Netcode
Veteran Poster
1,037 posts since Jun 2009
Reputation Points: 43
Solved Threads: 70
Skill Endorsements: 0

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
Veteran Poster
1,065 posts since Nov 2007
Reputation Points: 156
Solved Threads: 228
Skill Endorsements: 9

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
Skill Endorsements: 0

This article has been dead for over three months: Start a new discussion instead

Post: Markdown Syntax: Formatting Help
 
You
View similar articles that have also been tagged:
 
© 2013 DaniWeb® LLC
Page rendered in 0.1199 seconds using 2.77MB