Frage

I have the inital file list working well, but i was wondering if it's possible to display the size of the uploaded image?

My json returns the "size" param as per the documentation, but it does not seem to be used. What i was looking for was the filesize to be displayed next to the links, similar to what is done when the file is actually uploaded.

I am using the standard thumbnail template, which i can see has the following element: Can this be populated with the file size on retrieval of the inital file list?

War es hilfreich?

Lösung

Your code should work as is, but you've uncovered an issue in Fine Uploader. The workaround is to set contribute the following option:

display: {
    fileSizeOnSubmit: true
}

This issue is being tracked and will be fixed in a 4.3.1 hotfix release, most likely today.

https://github.com/Widen/fine-uploader/issues/1130

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top