-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TypeError in upload_image – No response returned for image uploads #75
Comments
Sorry, I can't understand what you're mentioning. Can you elaborate? |
I encountered the TypeError while uploading images, specifically when I tried to upload an image file(png).(on the dev branch) |
@mdxabu ,Just following up—did you also encounter the TypeError while uploading images (PNG or any format except for PDF) on the dev branch? Let me know if you need more details. |
Yes this is a valid issue I just checked there was no return statement with the upload image function on the backend that is why was giving this error. I have rectified this in PR #76 |
I had already resolved this in my local repository and was waiting for a confirmation from @mdxabu before opening a PR, to check if the issue was widespread or just on my end.Moving forward, I believe it would be more efficient to discuss such issues here first before opening a PR to ensure alignment and avoid duplicate efforts. |
Sorry for the late reply @01bps Please tell me the entire issue you are facing in the backend, and I'll review it also I can open some issues from tomorrow, so I think there will be no conflict will happen 👍🏽 . Interested people can show their interest. Regards, |
No worries, @mdxabu! I appreciate your response. The issue I encountered was a TypeError where, if an image (JPG, PNG, etc.) was uploaded instead of a PDF, the function didn’t return a response after saving the file. The To address this, I made the following changes:
I also thought of adding these but Since our web app already ensures that an image won’t be uploaded unless all required fields (image, title, and description) are provided, setting default values might not be necessary.
|
Before implementing'PDF' files, It works fine. I'll test and fix this issue. |
Sure! Thanks for looking into it. Let me know if you need any further details from my end. |
I am sorry for the misunderstanding. I thought that if this issue was created by my previous PR I should have taken the responsibility to resolve this as this should not be a burden for other contributors. If my PR discourages the very spirit of open source, i will close it, you can raise a PR for this issue |
absolutely correct, i did these changes only for issue to be resolved |
Sure also apart from this issue, should I make #65 for main branch also? |
Thanks for understanding. Happy open source ❤️ |
No worries. Let's move forward and resolve this. Thanks for your understanding, and feel free to continue with the contributions! |
I ran into a TypeError while uploading images, but it doesn't seem to affect PDFs. From what I understand, the function might not always return a response in certain cases.
@mdxabu , can you check if you're experiencing this too? If so, I'd be happy to fix it.
The text was updated successfully, but these errors were encountered: