hyper63 / hyper63/hyper-ext-model

feature: addAttachment

Aperta
#9 0 commenti 0 reazioni 1 assegnatario Rivendicata da @twilson63 Vedi su GitHub
extension
Lingua principale
TypeScript
Stelle
0
Fork
0
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

```js
await profiles.addAttachment(model_id, attachmentName, stream/file)
```

If the attachments flag is true, then use the `storage` service to add an unstructured object/file, then within the model, add the document name to a `$attachments` property, that lists all attachments added to this model document.

### Modes

- atomic: if the update to the data service fails, then rollback the upload of the file by deleting it
- non-atomic: if the update to the data service fails, then return the fact that the update operation failied even though the upload file was successful.

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.