Cancelado

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

(Detail:

- choose local pics,

- create destination folder,

- choose destination folder,

- upload)

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

(Detail:

- 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 https://www.domain.com/uploadApiSessionRequest/<1>/<4> is used

b) Upload for specific customer:

https://www.domain.com/uploadApiSessionRequest/<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:

error=0

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]"

RESPONSE:

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

HTTP/1.0 200 OK

Content-Type: text/plain

error=0

clickurl=[URL]

where:

[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

error=[errorcode]

where:

[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.

Habilidades: PHP

Ver mais: script jpg sample, utf8 codes online, transfer url, email format invalid, simple binary code, simple binary, request transfer domain, photo shopping pictures, photo shopping pics, online shopping script php, online photo shopping, multipart form request, lt security, invalid email format, invalid email error, invalid email address format, incorrect address, incorrect email address, inbox login, binary code, get external data, email incorrect, email address incorrect, easy domain transfer, domain name transfer online

Acerca do Empregador:
( 5 comentários ) Brühl, Germany

ID do Projeto: #457631

6 freelancers estão ofertando em média $297 para este trabalho

value4u

Hi, please check my PM. Thank you.

$480 USD in 7 dias
(272 Comentários)
8.2
dagdya99

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 Mais

$300 USD in 7 dias
(106 Comentários)
6.6
sureshmca06

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

$250 USD in 3 dias
(11 Comentários)
4.5
prabaarun

we are having php experts.we have done so many projects in php.some of them are real estate portal,cricket game organiser,travel website.i will give details upon selection.we are interested in your job and we will comp Mais

$250 USD in 6 dias
(0 Comentários)
0.0
meandumahi

hi .. please check pmb

$250 USD in 2 dias
(0 Comentários)
0.0
alaa3ma

We can do it

$250 USD em 1 dia
(0 Comentários)
0.0