Skip to content
This repository has been archived by the owner on Jul 24, 2024. It is now read-only.

fix: use formdata for all file creation requests #560

Merged
merged 1 commit into from
Nov 11, 2021

Conversation

samblacklock
Copy link
Collaborator

Type

  • Fix

    Fixes a bug

Description

After discussion with API team: ensure that all file creation requests operate with a FormData object.

This way we can maintain the simple file_location creation method by allowing a POJO to be passed without requiring the user to create a FormData object of their own (although it doesn't prevent this either)

e.g. Moltin.Files.Create({ file_location: 'https://file-url.com })

@samblacklock samblacklock changed the title fix: files use formdata fix: use formdata for all file creation requests Nov 11, 2021
@samblacklock samblacklock merged commit a70ccbf into master Nov 11, 2021
@samblacklock samblacklock deleted the fix/files-use-formdata branch November 11, 2021 17:14
@samblacklock
Copy link
Collaborator Author

🎉 This PR is included in version 10.3.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Development

Successfully merging this pull request may close these issues.

2 participants