Topic: upload a single file

hi

I have written this post on stack overflow:

http://stackoverflow.com/questions/30917249/plupload-upload-a-single-image-file

But I didn't get an answer and wondered if anyone can help. Here is the question.
To recap.

I am trying to get this functionality:

1> User clicks pick image button and file is uploaded (working now)
2> User clicks pick image button again and existing file is replaced with new.
3> User clicks remove button and the file is removed.

This fiddle shows where I am: 

http://jsfiddle.net/angusbeare/WuSJT/128/

I'm struggling to work out how to do this.

Can anyone help?

thanks

Re: upload a single file

I've written a reply in SO. Have a look at this fiddle and see if it helps. There's more details on your post there.

http://jsfiddle.net/osullivanja/4mghej6t/

Re: upload a single file

Brilliant, that's exactly what I needed.

thanks so much!

4 (edited by Norbert 2015-09-15 15:44:12)

Re: upload a single file

UPDATE: will start a new thread for this.

I've only just noticed that the code above works great for .jpg and .png but when I just tried a .gif but the thumbnail does not appear after upload.

Any ideas?

http://jsfiddle.net/osullivanja/4mghej6t/