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

flexible upload support #1917

Closed
wants to merge 43 commits into from
Closed

Conversation

@rnicholus
Copy link
Member Author

rnicholus commented Sep 15, 2017

Progress here:

  • onUploadChunk can return a Promise that optionally overrides endpoint, params, headers, and method for the chunk upload.
  • onUpload can return a Promise.
  • New function type options for the chunking.success option: headers and params. Also jsonPayload boolean and method string. Finally, endpoint accepts a function value. All function options are passed the file ID.
  • New request.omitDefaultParams option. If set, Fine Uploader doesn't send any "qq" params w/ the upload request.
  • New request.requireSuccessJson option. If not set, upload endpoint does not need to return { "success": true } to indicate success.
  • More flexible resume support (allow custom keys/data)
  • allow per-file chunking.partSize
  • Unit tests to cover everything.
  • Documentation updates.
  • Document chunking.mandatory option.
  • Typescript def file updates. (cc: @SinghSukhdeep)
  • fine-uploader-wrappers updates to cover any new API features (i.e. more async support).

rnicholus pushed a commit to FineUploader/fine-uploader-wrappers that referenced this pull request Sep 27, 2017
rnicholus added a commit to FineUploader/fine-uploader-wrappers that referenced this pull request Sep 28, 2017
fixes #5

Also:
feat(callback-names): onUpload and onUploadChunk now accept promises
re: FineUploader/fine-uploader#1917
@singhjusraj
Copy link
Member

@rnicholus I can work on updating the TS def now? as your planned development is complete.

@rnicholus
Copy link
Member Author

@SinghSukhdeep sounds good. I don't have any of the docs updated yet, so if anything isn't clear, LMK. there are a lot of changes here...

@rnicholus
Copy link
Member Author

I believe I have now written sufficient unit tests for all changes/additions in this PR.

@rnicholus rnicholus added this to the 5.16.0 milestone Oct 16, 2017
@singhjusraj
Copy link
Member

Would need the docs updated before I can start with TS update.
Lot seems to have changed and I can't seem to figure everything out by looking at all the changes.
Doc update would point me in straight direction.

@rnicholus
Copy link
Member Author

Docs are next on my list...

@rnicholus
Copy link
Member Author

API docs updated!

{{ api_event("upload", "onUpload", "Called just before an item begins uploading to the server.",
{{ api_event("upload", "onUpload",
"""
Called just before an item begins uploading to the server. In asynchronous work must be performed,

This comment was marked as spam.

This comment was marked as spam.

This comment was marked as spam.

This comment was marked as spam.

This comment was marked as spam.

This comment was marked as spam.

@singhjusraj
Copy link
Member

TypeScript Updated

@rnicholus
Copy link
Member Author

Thanks @SinghSukhdeep. Looks like everything is done here. Just need to let all of these changes cook on a project of mine before I release (along with a bit more manual testing). Would love to hear if others are having success with this branch.

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.

2 participants