-
Notifications
You must be signed in to change notification settings - Fork 1.9k
13 - Populate file list with previously uploaded files #784
Comments
Hello Sebastian. Are you the same person who created this thread on Stackoverflow? |
No but I have the same problem |
Displaying files uploaded from previous sessions on a page seems a bit out of scope as far as upload libraries are concerned. Why do you want to display previously uploaded files? Perhaps if you discussed your web app a bit more, I could be of more help. |
No response after 2 days. Closing. |
I also need function to populate list of already uploaded files. Let say I have a document with attached images or archives (uploaded with fine-uploader). Would be nice to have ability to rename or delete, or view thumbnails of those attachments some time later. |
@hilobok What you are asking for is really not related to the function of uploading files. Fine Uploader really isn't a general-purpose UI tool. The default UI is really only designed with uploading files in mind. It seems like non-uploaded-related tasks, such as the one you are describing, should be handled outside of Fine Uploader. |
I agree handling previously uploaded files escapes the role of Fine Uploader. I succeeded in populate list of already uploaded files by support with server side and listElements option. I'm being actively considering using an alternative solution because of this issue. |
@ironyee If this is a feature you would like to see, please describe, in detail, how you would expect it to function. |
I'm sorry for my parsimonious explanation. Environment:
If some users click edit button to edit their post, they are supposed to see Fine uploader again.(previous session) Because Fine uploader do not support this function, I try to set a status of Fine uploader by information from server-side on initialization.
I'd like to see the right way to address these issues. |
What does your "edit" button do, exactly? |
I'm really looking for details regarding how you would expect this to work. For example, how would you expect Fine Uploader to get a handle on previously uploaded files? Does you edit button reload the page, or just re-render an element and re-instantiate Fine Uploader? |
I just understand your question. To render previous uploaded files, FIne uploader should receive assistance from server-side. In my humble opinion, there is a way to put endpoint for previous status on fineUploader constructor like S3 request. like this. var uploader = $( '#fineuploader-s3' ).fineUploaderS3( { When Fine uploader is created, A request for session is sent to server asynchronously. { Receiving information for previous uploaded files, Fine uploader act as upload is completed without actual upload. I hope you can understand I can't fill out a refined method. Fine uploader isn't assembled on server-side and need to call constructor whenever a page is loaded like client-side template. But I don't know exactly how to operate fineuploader constructor internally. |
I see. Well, this all seems fairly reasonable. I still think this is probably beyond the scope of this library, but there have been a number of requests for this feature. So, I'm going to re-open this case, and we will discuss some more internally. It is important that we all agree on an implementation, so I am hoping others will comment on your proposal here as well. |
Adjustments to the last post by @ironyee regarding server response:
|
Is there any progress? I switched from fineuploader as this is killer-feature for some workflows. |
@nick4fake Work on this feature is scheduled for the current release cycle. See the last set of comments for details. If the planned implementation does not match up with your expectations, speak now before work on this feature begins. |
I plan to start work on this today. |
Tasks to tackle for this feature:
|
I accidentally associated a482346 with the wrong issue in the commit message. It should have been associated with this issue. |
TODO: - unit tests - docs - manual testing
Note that file items loaded into Fine Uploader during initialization will be counted when determining if you have reached your |
Sorry, any news on this? |
@nick4fake Yes, it's complete and will be part of 4.2. You can read the documentation on this feature in the development branch at http://docs.fineuploader.com/branch/develop/features/session.html. 4.2 is set to release on Wednesday. |
…ineUploader#784) a link to the session feature would be nice.
Can the files be added without an ajax request? I need a simple way to add already uploaded file records for a common scenario:
Is there something like This should be really simple, because this functionality is already written and works when AJAX request is processed. I tried
The file record is added, but not fully functional. All the buttons like retry and cancel are visible and no events are attached. For example when I press delete, nothing happens. Can you explain how this can be done? |
If you set the For any more questions regarding use of Fine Uploader, please post on Stack Overflow under the fine-uploader tag. |
@alphestdev Ran to the same issue today, here the not so nice hack for fine uploader UI:
beware it call internal API and should not be trusted when you update the lib etc... |
Issue #1191 covers exposing a public API method that would allow canned files to be easily added from any source. I've moved that case into version 5.6.0, which I will begin working on immediately. Please follow that case for updates. |
Using the jQuery wrapped latest version
How to populate the file list with files already uploaded to server?
Adding my own items to the list/UI via jQuery is not option because I lose validation rules
The text was updated successfully, but these errors were encountered: