sample jpg upload and order script

Hi php folks,

we need some really easy php pages.

First page: upload some pictures to a the webserver


- choose local pics,

- create destination folder,

- choose destination folder,

- upload)

Second page: show pictures with checkbox to transfer to online photoservice


- choose folder,

- show all pics from folder,

- each pic with a checkbox,

- transfer choosen pics to photoservice as anonymous customer )

- transfer choosen pics to photoservice as known customer

Documention from the photoservice:

The first step is a simple session request. Later on all uploaded pictures are marked with this ID, so that all of them can be assigned to the correct customer and shopping cart and no customer can see pictures of other people. The photos are being uploaded to the inbox of the customer, so that they can be moved to an online album or ordered directly. These session IDs can be used only for the API.

To get such a session ID there are two possibilities.

a) Upload for an anonymous customer:

Here, the URL<1>/<4> is used

b) Upload for specific customer:<2>/<3>/<4>

Meaning of the placeholders:

<1>: Skin-ID. This value is used for the internationalisation. Language, currency, measurements are set up via this method.

<2>: User name or email address of the customer

<3>: MD5 encrypted upload pin of the customer

<4>: With this unique key the external partner is identified.

In the case of success, the answer to this request has the following format:


uploadurl=[url removed, login to view];token=def

In the case of an error, the answer includes an errorcode. Have a look at chapter 4 to see them all.

The URL given at uploadurl is used in chapter 3. for the upload. Images are sent to it.

3. Upload Images

The Upload Image request is used to send the binary photo data together with the Session-ID. The Upload Image request will be a multipart HTTP POST

(multipart/form-data). The form data may contain the following form-data elements (content-type: text/plain; charset=utf8):

Name Value token The same token as in the Session Request sessionToken “ “

In addition, the form data will contain one image file (usually content-type: image/jpeg): name="ImageData" filename="[the filename]"


In the case of a successful upload, the server should respond with something like:

HTTP/1.0 200 OK

Content-Type: text/plain




[URL] represents a URL the customer can call to get to the photos at the photoservice.

Due to security reasons this link can be used only once, otherwise an error code will be send!

In case of a failed upload, the server responds with:

HTTP/1.0 200 OK

Content-Type: text/plain



[errorcode] is one of the errors defined in chapter 4, error codes. If the error is a fatal error, the upload should be aborted. If the error is nonfatal (eg 'image too large'), the client should proceed with the next image.

Note: All images must be > 50kb and < 50mb.

4. Error Codes

code description

-5 image too small

-4 image too large

-3 invalid filetype

-2 login incorrect

-1 login required

0 ok

1 invalid session ID

2 user quota exceeded

3 service unavailable

4 bad request

5 unknown token

6 missing skin_id

7 invalid sessiontoken

8 link to photoservice already used

Errorcodes < 0 are nonfatal, codes > 0 are fatal.

Script will be completed by us using tokens, id's and domains.

Taidot: PHP

Näytä lisää: script jpg sample, utf8 codes online, transfer url, transfer domain from domain com, transfer com domain name, this email format is invalid, simple binary code, simple binary, request transfer of domain, request for domain transfer, php to jpg online, photo shopping pictures, photo shopping pics,, online shopping script in php, online photo shopping, name com transfer, multipart http request, multipart form request, lt security, invalid email format, invalid email error, invalid email address format, incorrect from address, incorrect email address

Tietoa työnantajasta:
( 5 arvostelua ) Brühl, Germany

Projektin tunnus: #457631

6 freelanceria on tarjonnut keskimäärin 297 $ tähän työhön


Hi, please check my PM. Thank you.

480 $ USD 7 päivässä
(272 arvostelua)

Hi, We are interested in working with you. We have successfully completed various web projects in different areas like Dating sites, Real Estate sites, Event Management Systems, Classified sites and many busin Lisää

300 $ USD 7 päivässä
(106 arvostelua)

Hi I am ready., LETS START., Please Check my PM., Thanks.,

250 $ USD 3 päivässä
(11 arvostelua)

we are having php [url removed, login to view] have done so many projects in [url removed, login to view] of them are real estate portal,cricket game organiser,travel website.i will give details upon [url removed, login to view] are interested in your job and we will comp Lisää

250 $ USD 6 päivässä
(0 arvostelua)

hi .. please check pmb

250 $ USD 2 päivässä
(0 arvostelua)

We can do it

250 $ USD 1 päivässä
(0 arvostelua)