Forums / Setting Up Categories, Products, Attributes / Uploading images to server by their names not numbers

Uploading images to server by their names not numbers

Locked

Views: 1,662

Results 1 to 5 of 5
This thread is locked. New replies are disabled.
21 May 2007, 3:56 PM
#1
adder avatar

adder

New Zenner

Join Date:
Oct 2006
Posts:
14
Plugin Contributions:
0

Uploading images to server by their names not numbers

Ok , i setup my store so that my clients cand send the picture to me for their personalised product.

The uploading to server goes ok , I find the pictures on /images/upload directory BUT .... there is a problem :

If the client is browsing the picture named pic.jpg or anyname.jpg , that picture reaches the server with name 1.jpg , next pecture with 2.jpg and so on . I see that the script renames all the pictures that my clinetd upload from their own names to numbers - acscending . Wen for exemple 10 client send (upload) me 10 pictures per day , i seen in /upload folder all that pictures renamed : 1.jpg, 2.jpg .... -> 10.jpg , and I can`t guess with picture was send by whom.

My question is : how can I set the scrit so that the pictures that are uploaded by my client reachest the upload folder with their original names and not renamed.

Thank you.

21 May 2007, 4:01 PM
#2
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Uploading images to server by their names not numbers

10 customers named jack come to your site and load:
jack_logo.jpg

bad plan ... :eek:

This is the reason for the numbering system ...

The associated name of the image and the numeric name is shown on the order as well as stored in the database for comparrison in the files_uploaded table ...

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

21 May 2007, 4:11 PM
#3
adder avatar

adder

New Zenner

Join Date:
Oct 2006
Posts:
14
Plugin Contributions:
0

Re: Uploading images to server by their names not numbers

1 x Perna inima

    • Imaginea dvs. :: 21. 623.JPG*1 x Perna patrată
    • Imaginea dvs. ::** 20.** Picture 006.jpg*1 x Şapcă Neagră cu text
    • Textul dvs. :: AMEN CLUB DJ*1 x Cravata Personalizata
    • Imaginea dvs. ::** 19**. Sol_key.JPG*

I findet my self the answer (bolded) :))

22 May 2007, 3:43 AM
#4
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Uploading images to server by their names not numbers

Yes the numbers next to the filename(s) on the order will be the matching filename in the /images/uploads directory ... :smile:

Thanks for making that more clear ... :cool:

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

22 May 2007, 1:27 PM
#5
adder avatar

adder

New Zenner

Join Date:
Oct 2006
Posts:
14
Plugin Contributions:
0

Re: Uploading images to server by their names not numbers

yes, is very well thinked this option. :)