Ryder Cragie
05/14/2023, 5:54 PMzegevlier
05/14/2023, 5:56 PMRyder Cragie
05/14/2023, 5:56 PMRyder Cragie
05/14/2023, 6:13 PMRyder Cragie
05/14/2023, 6:16 PMhttps://cdn.discordapp.com/attachments/940663374377783388/1107370973746970816/IMG_3896.png▾
HardAtWork
05/14/2023, 6:18 PMContent-Type
when uploadingRyder Cragie
05/14/2023, 6:18 PMRyder Cragie
05/14/2023, 6:18 PMHardAtWork
05/14/2023, 6:21 PMrclone
sh
rclone move --http-headers '"Content-Type","text/html; charset=UTF-8"' someFile.txt r2:/someDirectory
Ryder Cragie
05/14/2023, 9:47 PMKarew
05/15/2023, 7:04 AMRyder Cragie
05/15/2023, 7:04 AMSourabh.Sashank
05/15/2023, 10:54 AMSourabh.Sashank
05/15/2023, 11:00 AMSourabh.Sashank
05/15/2023, 11:01 AMSid | R2
05/15/2023, 11:12 AM.put
multiple times to upload multiple files from the Workers APIelithrar
05/15/2023, 12:01 PMPromise.allSettled
to fire them all off async, at once, and retry/catch any failures.Sourabh.Sashank
05/15/2023, 12:18 PMSid | R2
05/15/2023, 12:26 PM.formData()
API doesn't work in a "streaming" fashion, so for larger files, you'll have to do this parsing yourself (It's also debatable if formData is the right choice for large files IMO)Sid | R2
05/15/2023, 12:28 PMLone Wolf
05/15/2023, 6:16 PMLone Wolf
05/15/2023, 6:17 PMLone Wolf
05/15/2023, 6:17 PMLone Wolf
05/15/2023, 6:17 PMLone Wolf
05/15/2023, 7:54 PMSid | R2
05/15/2023, 7:55 PMLone Wolf
05/15/2023, 7:55 PMLone Wolf
05/15/2023, 7:55 PMLone Wolf
05/15/2023, 7:55 PM