-
Notifications
You must be signed in to change notification settings - Fork 31
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
Integrate with DocumentManager/FileUploader #41
Comments
I'm assuming this is currently not a priority right now? Could you point me in the right direction to implement this in the framework (places/sub-projects that will definitely have to be modified to properly support this) Alternatively, if the framework regarding images/documents is changing soon, I'll resort to a custom object instead. |
This is a very nice feature and I want it added as soon as possible. The reason it was left behind is because we didn't had the time to really think it through. Let's use this issue to discuss what the expectations are. @gandesc please add your suggestions here. From the FE point of view it can be a nice file field with and upload button with its presence controlled from the json template. It should have a But once we upload one or more files, what do we expect from this field to be visual represented in the edit form? How will one file/more files be displayed? About behaviour:
From the BE point of view, what are the implications regarding the current |
I think the best strategy from the FE perspective is to include a EDIT: a specific max filesize / filetype option would also be recommended Images
FilesSimilar to images, but using a list instead of thumbnails, and I would keep the upload zone row fixed at the top instead.
Behaviour(in my opinion, of course)
|
sounds good.
filesize seems ok, but for filetypes we will stick with the above (content) and do extra validations on the back-end
sound good.
can be a future development It would be cool if you could find/post some pics as examples, maybe found nice implementations elsewhere. |
Sounds good (though for "files" it might be really useful (limit to .pdf, .csv, ...) )
👍 InspirationImagesmy original thought (quick mockup): extra inspiration (dropzonejs): filessome combination of these (with a clean enso-look) |
Also note that --ideally-- clicking on the image preview shows a bigger (modal?) view of it use case: form edit being used by another user than the one creating the form; wanting to inspect the uploaded pictures |
https://rowanwins.github.io/vue-dropzone/docs/dist/index.html#/custom-html looks like a great implementation example, btw; perhaps it can be used instead of recreating the wheel? (their github seems active) They do seem to be handling the upload part internally, and for swiftness I think it wouldn't be a bad idea to just have the dropzone upload files (filemanager) and then saving the attributes/id's with the form itself. as for the editing part: it does support programmatically loading in data |
looks fit. |
apparently makes more sense to build a custom wrapper around https://www.dropzonejs.com/ |
vue-dropzone (linked above) looks like a better fit though; it's already in Vue & has closer feature-parity to the implementation features above (deleting; slots for styling; already a vue component; ...) EDIT: there's an options prop that accepts all valid dropzonejs options; along with that vue-dropzone has s3(-compatible) upload capabilities; which is used quite often in modern development to distribute/reduce server load |
I've noticed that Dropzone got added last week; is this feature (partially) implemented that are just missing docs? or is it just preparations that had been made? |
it's WIP and will take some time.. I'm working at rewriting some other features with higher priority |
Ok, no problem; was just curious. I've been noticing the great work being pushed recently ;) |
Is this still planned? |
Hi @aocneanu, I just started to create the same issue but luckily I found this existing one. Can you please give me a quick update for this feature? I would need it for my project too. |
Hi @aocneanu, Hope you are doing well? Do you maybe have any update for this if this is still planed? |
This is a feature request.
Prerequisites
Description
Allow adding a "document" type to the form builder; integrating with (parts of?) DocumentManager//fileUploader to allow easily saving a specific document/image along with a form/model
The text was updated successfully, but these errors were encountered: