0

How can I upload an image without page refresh; just using input type="file" to server. I'm using PHP to upload the file. I also need to insert markdown code with a URL to the image, like this: ![Image.](/url/to/image.png) to end of a textarea.

How can I do this? Maybe using JS?

Thanks in advance

Rory McCrossan
  • 319,460
  • 37
  • 290
  • 318

1 Answers1

0

Refer this:

http://malsup.com/jquery/form/

You can have basic php image upload script at server side..

Rayon
  • 35,420
  • 4
  • 45
  • 69