XHMM / react-native-cloud-store

A react-native module for icloud drive
https://react-native-cloud-store.vercel.app/docs/install/with-crna
MIT License
68 stars 11 forks source link

how to upload content without a local path #14

Closed gutenye closed 1 year ago

gutenye commented 1 year ago

I want to upload the content directly to iCloud, something like upload(cloudPath, content, { onProgress }), basically a version of writeFile + onProgress, without the need to create a temporary file, but also support onProgress callback.

I believe this is a very common case, is there a method to do it? Thanks

XHMM commented 1 year ago

Currently you need to do as you said.

I will add onProgress support for writeFile next version, and thanks for your suggestion.


发件人: Guten Ye @.> 发送时间: Thursday, March 2, 2023 5:01:04 PM 收件人: XHMM/react-native-cloud-store @.> 抄送: Subscribed @.***> 主题: [XHMM/react-native-cloud-store] how to upload content without a local path (Issue #14)

I want to upload the content directly to iCloud, something like upload(cloudPath, content, { onProgress }), basically a version of writeFile + onProgress, without the need to create a temporary file, but also support onProgress callback.

I believe this is a very common case, is there a method to do it? Thanks

― Reply to this email directly, view it on GitHubhttps://github.com/XHMM/react-native-cloud-store/issues/14, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AF5DMWTMCNFATCD3NJFXEFDW2BOVBANCNFSM6AAAAAAVNC3T6Q. You are receiving this because you are subscribed to this thread.Message ID: @.***>

XHMM commented 1 year ago

supported in v0.10.0