Skip to content
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

Enable Multiple Image Uploads #100

Closed
mahmoudnasser1561 opened this issue Feb 27, 2025 · 2 comments
Closed

Enable Multiple Image Uploads #100

mahmoudnasser1561 opened this issue Feb 27, 2025 · 2 comments

Comments

@mahmoudnasser1561
Copy link

Currently, the Beehive application only allows users to upload one image at a time. This limitation can be inefficient for users who want to upload multiple images in a single session.
To improve usability and streamline the upload process, we need to implement a multiple image upload feature.

Proposed Solution:

  • create and upload form to allow multiple file selections (multiple attribute in HTML).
  • Update the backend to handle multiple files
  • Modify the upload_image() route to process multiple files from the request.

I believe that this Issue is caused by JS Code responsible for drag and drop feature
dragdrop.js

and then the way the upload_image() route handles it afterwards

    file = request.files['file']
    title = request.form['title']
    description = request.form['description']

    if file and allowed_file(file.filename):
        filename = file.filename
        filepath = os.path.join(app.config['UPLOAD_FOLDER'], filename)
        os.makedirs(os.path.dirname(filepath), exist_ok=True)
        file.save(filepath)
        save_image(user['username'], filename, title, description)
@pradeeban
Copy link
Member

This is already implemented in the dev branch. Please switch to dev branch for the bug reports. Currently the main branch is frozen. Therefore, you are seeing the code that does not have this (and some other issues) fixed.

@mahmoudnasser1561
Copy link
Author

oh Got it!
thank you so much for the clarification!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants