————
les UlComponents CLI Studio. Hosting» Guides API Reference»
Getting Started Lib
Upload fies
= BB saesciot
Upload files
‘Amplify Libraries
Analytics . Put
fer Grek) . The pet method unloads les nto Amazon Ss.
‘(REST .
‘Authentication . Ieeetuins a (8 8 beck ay) objet on sucess
Datastore . -
In-App Messaging (Preview) ¥ React htire
Interactions . Public evel
Predictions .
Pubsub y
Protected level
Private level
Monitor progress of upload
Totrackthe progress of your upload, you can ase the
Encrypted uploads
Tovtlize ServersSide Encryption wth AWS KMS, the following options can
be passe in with the Put AP ke so
Pause and resume uploads
Passing the rezaetie: true option to the Put AP returns an object withthe
Following methods: pase
The storage anced APLis also
availabe if you are looking to cancel the uplond a any point ofthe upload
\when a page efesh occurs during the upload, e-intilzing th
the same fle will continue from previous progress point.
Uploads that were initiated aver one hour ago wil be cancelled
automaticly, There ae instances (-g device went offine, user lous
(ut) where the incomplete file remains in your SB acount. tis
recommended ta -stn 95
incomplete upload requests.
fecyle rule to automatically deanup
Event handlers
With the resume: tr’ flag, there are 3 callback functions available:
co satthck and evar
Browser uploads
Upload an imagein the browser:
React Native uploads
Upad an image in your React Native ap:
When a networking error happens during the uplaad, Storage module retries
upload for 2 maximum of attempts. Ifthe upload fais afterall rtres, you
val get an ero
« concepts Download files >
on ed
Coe os ers
pean cE ree meres
eee
road ee ee eet eee