Rauf
Rauf

Reputation: 12842

asp.net image upload

i want to upload images of customer in my web application. is there any naming convention should i follow to name the files(e.g; i can store cust_id.jpg or cust_name.jpg). which is better ?

Upvotes: 0

Views: 274

Answers (1)

David
David

Reputation: 218798

If each customer is to be permitted no more than one image then it would make sense intuitively to use whatever unique identifier the system otherwise uses for that customer, be it a name or a friendly ID or a GUID. That way it's more immediately recognizable for its relation to the customer data.

Upvotes: 1

Related Questions