Closed sahircansurmeli closed 1 year ago
[ ] def upload_file(file: str) -> ObjectId. The function should take a base64 string as input, decode it to correct format, store the file in the database and return the ID of the inserted object.
def upload_file(file: str) -> ObjectId
[ ] GET /file/{id}
GET /file/{id}
The file must be formatted such that
<img src="/file/{file_id}">
works correctly
[ ]
def upload_file(file: str) -> ObjectId
. The function should take a base64 string as input, decode it to correct format, store the file in the database and return the ID of the inserted object.[ ]
GET /file/{id}
The file must be formatted such that
works correctly