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
We need fastapi api with route to start printing. It should check whether file is pdf, if it is then prepare printing job and return id with meta (user should be able to preview printing details and decline job), otherwise try to convert to pdf and then return all needed data.
Describe the feature
We need fastapi api with route to start printing. It should check whether file is pdf, if it is then prepare printing job and return id with meta (user should be able to preview printing details and decline job), otherwise try to convert to pdf and then return all needed data.
Suggested solution
Use fastapi UploadFile.
To get file extension you can use suffix of filename or puremagic (preferable).
For storing files before printing you may use tempfile.
Additional context
No response
The text was updated successfully, but these errors were encountered: