Skip to content
This repository has been archived by the owner on May 5, 2021. It is now read-only.

OnDataRead upload status does not work for image resize #54

Open
frankyjin opened this issue Aug 17, 2020 · 0 comments
Open

OnDataRead upload status does not work for image resize #54

frankyjin opened this issue Aug 17, 2020 · 0 comments

Comments

@frankyjin
Copy link

While trying to read the file upload progress, your sample code works file. However, changing the following two lines:

var ms = new MemoryStream(); await file.Data.CopyToAsync(ms);

to include file format:

var format = "image/jpeg"; var imageFile = await file.ToImageFileAsync(format, 3000, 3000); var ms = new MemoryStream(); await imageFile.Data.CopyToAsync(ms);

This causes the progress to always show 0%. Is there a way to make this work? Thanks!

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

No branches or pull requests

1 participant