Skip to content
This repository has been archived by the owner on Nov 20, 2018. It is now read-only.

[Placeholder] - Add support for display of image thumbnails/previews (pre-upload) #214

Closed
hiulit opened this issue Nov 11, 2011 · 7 comments

Comments

@hiulit
Copy link

hiulit commented Nov 11, 2011

Hi there!

I'm using this great plugin and it's working wonderful for me!
I've tweaked it a little to fit my project but I can't get it to show thumbnails (and store them on the server would be even better) so users can see what they just uploaded.

Thanks in advance!

@rnicholus
Copy link
Member

Doable, but not in the 2.x branch. This will likely be part of 3.x..

@cdvrooman
Copy link

I was just trying the "Display Image Thumbnails" demo and I did the following:

  1. Uploaded a test image, the thumbnail was displayed as expected.
  2. Uploaded two additional, different test images; however, the thumbnail from the first image appeared two more times.

For whatever reason, the thumbnail mechanism is not detecting the latest uploaded image and is reusing the first image.

The demos are still pretty cool!

@rnicholus
Copy link
Member

@cdvrooman Please show your code. If you are simply using the "thumbnail" demo as-is, you can see, looking at the code, that this is not capable of showing the thumbnail of an actual dropped/uploaded image. The demo is meant to simply highlight the possibility. You will need to write your own code to display the thumbnail of a dropped/selected image file. The File API along with the createObjectURL function are both a necessity to make this happen.

@abennouna
Copy link
Contributor

I am not sure I'm following but provided you return the filename (ie the
response JSON in the case of PHP), you can use the demo as is and use the
server upload path + returned filename

@rnicholus
Copy link
Member

Ah yes, if you know the path of the uploaded file, you can display a thumbnail in the browser by following the advice from @tellibus. My comment discussed how you can display a thumbnail before the file has even been uploaded. The latter is something I plan on adding to FU in the near future. The former could be a fallback, for browsers that don't support the File API.

@lmaurer
Copy link

lmaurer commented May 29, 2013

Need to break this up into separate stories:

@rnicholus
Copy link
Member

Closed as this has now been split up into 3 separate cases.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

5 participants