Đã hoàn thành

Upload photo API for my WebSite

For my WebSite I need a new API to let at my users upload images from local PC / laptop to server or from an external URL.


I need to give the chance at my users to upload photos (.jpg, .png, .gif) to the website or use a external URL to provide the picture.

Is necesary to do this with AJAX and without a postback. When the file it's uploaded it will be resized and saved in an specific path.

For the project it's possible to use jQuery and PHP running in Apache for Windows.


1. In a form with 3 input the user can choose to upload a photo or provide the photo by an URL.

(See attached file: [url removed, login to view])

2. In both case (upload or provide by URL) the photo will be saved on the server (using AJAX and no postback, no iFrames... JUST AJAX!!! <-- IMPORTANT, I am in a disput for this right now :-/) and will be resized: max. width of 960px or max. heigth of 720px and 72dpi (proportionally).

3. If the uploaded / imported photo's size is less than 100px * 75px then DO NOT upload / import the photo and throw a message to the user ("the photo is too small to be uploaded")...

4. When the photo is uploaded then create a copy of it but with a small size (100x75, proportionally)

5. Once the picture is uploaded then trigger a JavaScript API's event with the result: file final path. For ex.: onSuccess(originalSizePath, smallSizePath)

6. If during the upload something fail then trigger an JavaScript API's event to informe that. For ex.: onError(errorMsg)

7. Everything will be encapsulated into a jQuery API.

For example:

- if the uploaded photo's size is 1500x1000 the final size will be 960x640.

- if the uploaded photo's size is 1000x2500 the final size will by 288x720.

- if the uploaded photo's size is 520x400 this will be the final size (no resize!)

3. In a DIV appear the uploaded photo with the description entered.

(See attached file: [url removed, login to view])


Is necesary to encapsulate all the functionality into a .JS file with jQuery and into a PHP file for the code-bihend.

Kĩ năng: AJAX, HTML, Javascript, jQuery / Prototype, PHP

Xem nhiều hơn: step to create website, see my picture, my website to create, my website create, js for, create a copy of a website, jquery ajax api, javascript less than, windows api, upload to server, postback, photo s, my laptop, informe, disput, ajax upload, php file upload form, upload gif, jquery upload photo, jquery ajax message, php ajax form upload, apache javascript, file upload resize, png resize, gif images website

Về Bên Thuê:
( 12 nhận xét ) Buenos Aires, Argentina

ID dự án: #1722295

Được trao cho:


Hi. I can do it. Please check your Pm. Thanks

$150 USD trong 1 ngày
(41 Đánh Giá)

6 freelancer đang chào giá trung bình $138 cho công việc này


Hello. Here is my bid. Please give me the task. I can do it.

$200 USD trong 2 ngày
(129 Nhận xét)

hello i have gone through your requirement plz check my pm for further info thank u

$140 USD trong 3 ngày
(72 Nhận xét)

Please check PM.

$150 USD trong 3 ngày
(12 Nhận xét)

I would propose the use of plupload, I have done exactly what you are describing in the past and have some code ready, would be glad to work on this...

$200 USD trong 1 ngày
(0 Nhận xét)

hi...done this type of work

$100 USD trong 3 ngày
(0 Nhận xét)

hi i completed this...

$90 USD trong 0 ngày
(0 Nhận xét)