Upload a image file to a rest service (Slim framework) (php)

Hi all,

i need to upload image files with input type file to a Rest Service using jQuery and Ajax.

Rest Service is made with Slim Framework. It receives the data in json format.

Image file is in a Form, with a input type file. It can be another solution different than input file.

I want to show a thumbnail of the image selected, below the button to load image.

I got to post the form fields to the service, but i can not serialize the image file to send to the service. I think i have to search an alternative solution, like posting to a hidden iFrame.

In the attached document there are several links with more information.

Attached also a sample code

I want a profesional and elegant solution,

Best regards,

Taidot: graafinen suunnittelu, HTML, PHP, verkkosivujen suunnittelu

Näytä lisää: slim framework upload file, upload file slim framework, slim file upload, php slim upload file, slim framework file upload, slim upload file, php post image file rest, rest php upload image, image upload slim framework, slim php framework file image upload, php slim upload files, slim rest php, rest file image, slim framework image upload, php rest image upload, php slim file upload, php slim framework upload file, slim rest file upload, jquery upload slim php, upload image slim framework, file upload slim framework, rest upload image php, slim upload image, slim framework image, php image upload slim framework post

Tietoa työnantajasta:
( 7 arvostelua ) BINEFAR, Spain

Projektin tunnus: #4250259

Myönnetty käyttäjälle:


Hello Sir, I am ready to start. Thanks

€6 EUR / tunti
(10 Arvostelua)

5 freelanceria on tarjonnut keskimäärin %project_bid_stats_avg_sub_18% %project_currencyDetails_sign_sub_19%/tunti tähän työhön


We have all the required designer and developer you are looking for and can allocate dedicated resources for your project. You will be very happy and satisfied of our services.

€10 EUR / tunti
(64 arvostelua)

Hello, we are a group of programmers based in Sheffield, UK offering 7 years experience in php, .net, c#, jquery, css, python and c++. I am proposing to carry out tasks required for this project. Thanks.

€6 EUR / tunti
(26 arvostelua)

Hi, I am highly experienced in Wordpress, Joomla, HTML, CSS, PHP, Graphic Design, Skills........So Please Check PMB For More Details........

€6 EUR / tunti
(16 arvostelua)

Hi, I downloaded & went through the code. I think there is problem with the used framework in here. If you are interested I can fix using PHP & rest web services. Actually I have no experience in framework which u Lisää

€6 EUR / tunti
(0 arvostelua)