-
Notifications
You must be signed in to change notification settings - Fork 237
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
Multiple image uploading to Photologue from the frontend #198
Comments
Hi, |
Hello @richardbarran , I never ever start a new project from scratch before checking what's already available, but being mostly a front-end issue, I didn't restrict my research to django apps.
and I resolved to incapsulate them in a Django Form with as few javascript as possible. https://github.com/blueimp/jQuery-File-Upload It's a really great solution, however the javascript code is quite big, and with a clever usage of the "multiple" attribute in the tag could be considerably reduced - for this reason I consider that project a little bit outdated; finally, the integration in a Django project is not trivial at all. Thank you for reporting django-file-form, I will certainly check it, and possibly give some feedback. |
Hi, |
I like the idea of a "contrib" folder, and agree on all the motivations you mentioned. My needs on the front-end are:
I've not a precise schedule yet, as the project migration is still under discussion, but I will probably cope with it in a few months or so. In the meantime, it you agree, we could exchange some ideas on how to organize it for better integration with Photologue, and on the desiderable features to provide. At the moment, I have a working POC for files upload; there's a specific Form class in the app that takes care of all heady duties, and provides the required javascript (based on jQuery) through it's "media" meta attribute.
|
Hi, |
Any progress on this, a multiple photo uploader is exactly what we could use this django app for. |
@datatalking I have something ready to work with, but very busy right now. |
@datatalking, in the past I used some fancy javascript library to accomplish this; they work great, but I finally ended up to build my own minimal Django-friendly solution for the sake of simplicity and to recover control over my codebase. The result is in an open source "satellite" project, mainly for individual use till now; it is currently in use in a real "production" project (Django 2.x) and in a test project (Django 3.0.5). https://github.com/morlandi/django-upload-form I would be glad to hear your opinions on this; I'm willing to take this project more seriously, and publish it on the Pypi soon. Also, I'ld love to here @richardbarran opinion on these:
|
Django Upload Form uses a custom implemented jquery script on the front-end. I'd recommend staying away from that as x-browser file upload is an ever-changing endeavor. I'd recommend picking a solid front-end solution and making a decision on your python code from there. You could easily fork Django upload form and drop in plupload or Filepond. Personally, I have a need for a Django rest API so I'm going to be integrating Filepond with a custom backend that will be doing this. Which can be pretty light work if you're only needing a simple multi-image upload. Literally posting to /api/photos/ using default django rest views, etc. |
Thank you @derek-adair ... Filepond seems very interesting indeed. |
Hello @richardbarran , I'm considering django-photologue for a new project; thanks for your great work.
I would rather have the user upload images in a gallery from the front-end, but before doing that in the project I wonder whether you would be interested in adding this feature to the photologue app itself.
My contribution, in case, would be based on this work:
https://github.com/morlandi/django_upload_form
br, Mario
The text was updated successfully, but these errors were encountered: