Members
(inner, constant) BUCKET_NAME :string
Nom du bucket S3
- string
- Source
(inner, constant) BUCKET_NAME :string
Nom du bucket S3
- string
- Source
Methods
(async, inner) deleteFromS3(fileUrl) → {Promise.<boolean>}
Supprime un fichier de S3
Name | Type | Description |
---|---|---|
fileUrl | string | URL du fichier à supprimer |
- Source
Erreur lors de la suppression
- Type
- Error
true si la suppression a réussi
- Type:
- Promise.<boolean>
(async, inner) deleteFromS3(fileUrl) → {Promise.<boolean>}
Supprime un fichier de S3
Name | Type | Description |
---|---|---|
fileUrl | string | URL du fichier à supprimer |
- Source
Erreur lors de la suppression
- Type
- Error
true si la suppression a réussi
- Type:
- Promise.<boolean>
(async, inner) uploadToS3(file) → {Promise.<string>}
Télécharge un fichier vers S3
Name | Type | Description | |||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
file | Object | Le fichier à télécharger Properties
|
- Source
Erreur lors du téléchargement
- Type
- Error
URL du fichier téléchargé
- Type:
- Promise.<string>
(async, inner) uploadToS3(file) → {Promise.<string>}
Télécharge un fichier vers S3
Name | Type | Description | |||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
file | Object | Le fichier à télécharger Properties
|
- Source
Erreur lors du téléchargement
- Type
- Error
URL du fichier téléchargé
- Type:
- Promise.<string>