You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Would it be easy for specific field (String) of a model corresponding to a CDN url of a media file, to modify the form of the model in edit/create mode in order to enable to load local media file and enable the uploading of the file to CDN when saving, and finally returning the url of the file from the CDN in the model field?
Basic Example
Based on the prisma model:
model listenings {
id String @id @default(auto()) @map("_id") @db.ObjectId
v Int @map("__v")
arrangement String?
artwork String?
audioUrl String
authorMusic String
authorText String?
createdAt DateTime @db.Date
lastListening Boolean
recordingDate DateTime @db.Date
thumbnailDescription String
thumbnailUrl String
title String
updatedAt DateTime @db.Date
}
The audioUrl field correspond to the CDN url of an audio file
The thumbnailUrl field correspond to the CDN url of an image file
Would it be feasible to :
Add input local file in form data of these two fields in edit/create mode?
Launch a specified routine for uploading (and else...) the files onto the CDN when saving the model document
Drawbacks
No response
Unresolved questions
No response
The text was updated successfully, but these errors were encountered:
Summary
Would it be easy for specific field (String) of a model corresponding to a CDN url of a media file, to modify the form of the model in edit/create mode in order to enable to load local media file and enable the uploading of the file to CDN when saving, and finally returning the url of the file from the CDN in the model field?
Basic Example
Based on the prisma model:
The
audioUrl
field correspond to the CDN url of an audio fileThe
thumbnailUrl
field correspond to the CDN url of an image fileWould it be feasible to :
Drawbacks
No response
Unresolved questions
No response
The text was updated successfully, but these errors were encountered: