Is there an upload queue feature for ng-file-upload? - angularjs

Would it be possible using this library? I've used this one for uploading a single file or a batch of files but it only creates a single http request, just like the samples in its github page. What I'm looking for is have an upload queue for the user's upload files so that he/she can still select another file for upload while previous file is still in uploading.

You can just have an array (queue) in your javascript code that holds all the files and once a new file is selected start uploading it and push it to the array.
Alternatively you could achieve this by adding ngf-keep="true" directive which will keep adding the new files to the model while holding the previous ones.

with ng-file-upload you can do multiple file select dialog for async file uploads. It then gives the upload progress of all files during the concurrent file uploads.
e.g. file 1 - 50%
file 2 - 75%
I can vouch for this because Ive done it.
See usages ...
https://github.com/danialfarid/ng-file-upload#usage
can't see any reason why u could not allow the user to select another file whilst the files were uploading.
Just click the upload button again!

Related

in filepond which event will use to handle uploaded files using react js

Iam using filepond pond for uploading files to backend , uploading is working perfectly , but i want to block that current tab in the page until completion of uploads. for that i want to know that which event is handling for uploaded files. is there any event for checking is all files uploaded or not?
You can use the onprocessfiles callback which is called when all files in the list have been processed.
More info: https://pqina.nl/filepond/docs/patterns/api/filepond-instance/#callbacks

Uploading datas to skydrive without overwriting the existing file content in windows phone8

I tried to upload data(ie.) add data to an existing file in skydrive but everytime the content has been overwriting.
I want to add datas to the existing file without overwriting the previous contents.
Thanx for your help in advance
You should obtain the LiveConnect SDK, add the APIs to your project, login to the service, and upload a file to Skydrive.
Have a look over these threads. How to simply access SkyDrive, write and read files? and this one too.

Limit file upload on dropzone and force an error

Using jquery dropzone plugin, I am trying to alert an error message when users attempt to upload more than one file and then stop/reset the dropzone.
I found this helpful post which got me where I am:
How to limit the number of dropzone.js files uploaded?
Fortunately, I was able to get an alert message to appear when maxfilesexceeded is reached, however I am unable to stop the upload of the single file. It seems dropzone will still attempt to upload one of the files if multiple files are sent.
What would be the best way to force an error so none of the files are uploaded and the dropzone element can reset? Thanks!
I haven't tested it, but you could set autoProcessQueue: false on the initial configuration, and then upload when you are certain there's only one file with .processQueue().

How to create a file and make it downloadable in GWT?

I want to export the data in a celltable to a CSV file. I understand this must be done in the server side. I'm a bit lost on how to create a file, write the lines and then make the client download it.
One it's served, it could be downloaded automatically or by a "Download" button, is the same.
If you just want to generate file and serve it directly you can create a servlet and hit the servlet url in a Window, You may want to take the same datasource and use it at the server side to convert it into a csv. Please follow along the steps as described in (Download a generated pdf from client) and for downloading that from GWT Window follow (How to download a file via a button click i GWT?),

Web, Silverlight. Always show save file dialog when user try to download file

I have link to file (Inside sharepoint list) I need always to show Save file dialog.
But some browsers starts to download file without promt.
What should be done to avoid automatic download?

Resources