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

feat(uploader*.api.js): addInitialFiles() accepts non-successful files. #1751

Conversation

nalbion
Copy link
Contributor

@nalbion nalbion commented Feb 13, 2017

Brief description of the changes

If status is not provided, defaults to UPLOAD_SUCCESSFUL
My current project requires that files are scanned for viruses when uploaded, and when the user refreshes the page, the front end should query the back-end and be able to show files which were clean or contain viruses. To do this, I need to call addInitialFiles() with some having status = qq.status.UPLOAD_FAILED

What browsers and operating systems have you tested these changes on?

Chrome (not really applicable)

Are all automated tests passing?

check CI results

Is this pull request against develop or some other non-master branch?

develop

Copy link
Member

@rnicholus rnicholus left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A minor doc update, and please do write at least one unit test to exercise this new behavior. Once that it all done, I'll run some manual tests before merge. I'm hoping to release 5.14.0 soon, so this may target 5.15.0 instead.

@@ -66,6 +66,7 @@ Here are the following properties of each `Object` that Fine Uploader recognizes
* *s3Key: `String` - Key of the file in your S3 bucket. Only required if using Fine Uploader S3.
* *s3Bucket: `String` - Name of the bucket where the file is stored in S3. Only required if using Fine Uploader S3 and if the bucket cannot be determined by examining the endpoint URL (such as when routing through a CDN).
* *blobName: `String` - Name of the file in your Azure Blob Storage container. Only required if using Fine Uploader Azure.
* status: `String` - defaults to `upload successful`

This comment was marked as spam.

@nalbion
Copy link
Contributor Author

nalbion commented Feb 16, 2017

hmmm... getNetUploads() is documented:

Get the number of items that have been successfully uploaded and have not been deleted

...What if a file has been uploaded but rejected? (like my unit test was uploaded but rejected by Travis CI 😉 )

...answering my own question: seems that it would only be used for restricting the number of successful uploads

@rnicholus rnicholus added this to the 5.15.0 milestone Feb 16, 2017
@rnicholus
Copy link
Member

Looks good! I still need to do some manual testing. If that is successful, I'll merge into develop. I've marked this and your other recent PR for 5.15.0. I plan to release 5.14.0 in the next few days.

@nalbion
Copy link
Contributor Author

nalbion commented Feb 16, 2017

thanks Ray!

@rnicholus
Copy link
Member

rnicholus commented Feb 16, 2017

Say, you've contributed quite a few high-quality PRs lately. I've been looking for a second maintainer for a while. I've been the only consistent maintainer of this library since 2012, and I could use a second dedicated person. Is this something you're interested in? If so, follow me on Twitter and we can discuss in more detail over DM.

@nalbion
Copy link
Contributor Author

nalbion commented Feb 16, 2017 via email

@rnicholus
Copy link
Member

Totally understand. If you change your mind, do let me know. When I was tapped to take over Fine Uploader back in 2012, I felt the same way, but it turned out to be a very worthwhile endeavor that opened up a great number of new doors. I wrote about this a bit at https://medium.com/@RayNicholus/disrupting-open-source-the-story-of-fine-uploader-80160eb557d9#.qiez71c3z.

@rnicholus
Copy link
Member

I haven't forgotten about this. I'm in the process of switching jobs, so I have very little time to dedicate to Fine Uploader or other projects during this transition. I hope to get back to a normal OSS contribution schedule in the next couple months.

@nalbion
Copy link
Contributor Author

nalbion commented Mar 23, 2017

I hope it's a good move for you

@nalbion
Copy link
Contributor Author

nalbion commented Apr 25, 2017

@rnicholus please review merge of #1802

@singhjusraj singhjusraj modified the milestones: 5.16.0, 5.15.0 Jul 25, 2017
@rnicholus rnicholus removed this from the 5.16.0 milestone Oct 16, 2017
@rnicholus rnicholus closed this Nov 8, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants