Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

companion: avoid bad mutation of file object #1635

Closed
wants to merge 1 commit into from

Conversation

ifedapoolarewaju
Copy link
Contributor

@goto-bus-stop
Copy link
Contributor

I don't believe this changes the behaviour in any way, the Object.assign is not recursive so it was not touching the object inside the [this.options.fieldname] here. request/request#2366 (comment) seems to be referring to deep merges which we don't do…

i also don't have any better ideas though. @djlocoja @DannyFeliz @gabbanaesteban I wonder if one of you could try this patch out locally? you should be able to download https://raw.githubusercontent.com/transloadit/uppy/0d77dd687e58397b96a841136f870cb3fc1fe7fa/packages/%40uppy/companion/src/server/Uploader.js into node_modules/@uppy/companion/lib/server/Uploader.js to give it a shot.

@ifedapoolarewaju
Copy link
Contributor Author

closing based on argument by @goto-bus-stop

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Uppy uploader is not able to upload files using url provider.
2 participants