try this out and let me know what you think , maybe try it locally incase if its not working we can fix it up .
key changes :
File Type Handling: The process_file function now checks the file extension to determine if the uploaded file is a PDF or an image.
Image Processing: If the file is an image, it processes it directly using the get_image_informations function.
Error Handling: Added a check for unsupported file types and provided appropriate feedback.

amamrnaf changed pull request status to merged

Sign up or log in to comment