Cropped Image is not return by file picker
See original GitHub issuefilestack-js 0.10.1
When I call
fsClient.pick({ fromSources: ["local_file_system", "url", "facebook", "instagram", "googledrive", "dropbox", "evernote", "flickr"], maxSize: 102400000, maxFiles: 1, minFiles: 1, transformations: { crop: { force: true, aspectRatio: 1.778 }, rotate: true }, accept: ["image/*"] }).then(this.imageUploaded);
`imageUploaded({ filesUploaded, filesFailed }) {
const { onChange } = this.props;
if (filesFailed.length) {
message.error('Image failed to upload');
return;
}
console.log(filesUploaded)
}`
The file that is returned is not the cropped image but rather the full image that was selected
Steps
-
Crop
-
Upload
See the result here https://cdn.filestackcontent.com/w6LGhDJ6QAupRylsjQnT
Upload Id “cdf9eb61cb1aeb87c781af10291c1c97”
Issue Analytics
- State:
- Created 6 years ago
- Comments:5 (3 by maintainers)
Top GitHub Comments
@deliriousrhino I am not entirely certain but this might be a bug with the background uploading. Can you pass
uploadInBackground: false
and confirm if this behavior persists?Hi, this is fixed in newer releases.