Faheem Alam
Faheem Alam

Reputation: 525

is it possible to upload an image with only jquery with out using any php

i am trying to upload an image with Ajax/jquery without refreshing and also without using any php in back-end. i searched alot but all are using php at back-end, my requirement is not to use php.

http://www.9lessons.info/2011/08/ajax-image-upload-without-refreshing.html

http://dondedeportes.es/uploader-previewer/

if not possible without php . please suggest me some alternatives .

Upvotes: 0

Views: 195

Answers (3)

mistalee
mistalee

Reputation: 851

What kind of server are you using? If it supports Webdav, you could use a Javascript Webdav-Client. But for this, the server has to be configured.

Upvotes: 0

T.J. Crowder
T.J. Crowder

Reputation: 1074168

You can't upload the image to the server without server-side processing.

If your goal is just to show the image in the page, without uploading it to the server (perhaps as a preview), that's possible on newer browsers via a combination of the File API and a data: URI. The File API gives you client-side access to the file a user identifies, including the ability to read its contents; and a data: URI lets you put an image on the page using the data from that image file.

Upvotes: 0

GordonM
GordonM

Reputation: 31730

No, it's not possible to upload an image without some kind of backend to process the upload.

Upvotes: 4

Related Questions