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
Ability to attach a document by adding a link #12561
Comments
@decidim/product some doubts: A. so the idea is that if I provide a link to a doc, the system downloads the document as if the user had uploaded it, it is stored the same as if the doc has been manually uploaded, and the rest of behavior is the same (same fields, same required fields, validations...)? If my assumptions are correct, I guess we have two options of where to include the UI for the "doc upload type" In both cases I guess we should show two tabs: [ Upload via attachment ] [ Upload via link ] I guess my preference is for # 2, if not we'd have to build two different modals that are mostly the same. If you agree, I'll design option # 2. |
+1 for the 2nd option (is more UX friendly option and easy to integrate if we would to extend in other contexts like proposal attachments, etc) |
Another question is how we want the system to behave for an attachment via link when user goes to edit it: just show the file, or show the link? If we want to show the link, I guess we'd have to extend the model to store the URL etc which is more complex/more code to maintain, and I don't see much benefit for it. |
Hi @furilo! Important! This only affects attachments created by the admins. We don't want this option enabled for attachments created by participants (i.e. in proposals). Regarding the Design:
We should show the link and allow the admin to edit it. I'm not understanding why this should be more complex in terms of code to mantain. This attachment should be just a link. |
@furilo We only need to validate the URL format is correct, so if someone introduce an invalid URL it shouldn't be possible to continue. |
Just to confirm, do we want localized versions for the URL? I guess not. I've included in the example, but if we confirm we won't be having localized versions, I'll remove it. |
Thanks @furilo
No we don't need it. The tittle and description of an attachment will be defined in the attachement form. Regarding the guidelines, I would go for:
PD: Please remember to tag me/us whenever you need feedback from product. Doing that, I receive a notification and I can be more quick to answer. |
@mllocs the tabs are the same you can find in a meeting page ie. https://decidim-lot2.populate.tools/processes/polls-in-meetings/f/3/meetings/3 - ask @Crashillo if you need help
@NilHomedes ok! I thought once you had been mentioned you received notifications for each reply. |
Is your feature request related to a problem? Please describe.
As an administrator, I often need to attach documents in the admin panel. Currently, the process is limited to direct uploads, and there is a need for having as well the option to provide a link to its location.
Describe the solution you'd like
I want the ability to attach documents in the admin panel by either uploading the file directly or providing a link to its location.
Does this issue could impact on users private data?
No, this issue does not involve private user data.
Acceptance Criteria:
when I access the upload interface,
then I should have the option to either upload the file directly or provide a link to its location.
when I'm in the upload interface,
then there should be a specific field to input the document's external link.
when the link is submitted,
then the system should validate it and support common document link formats.
when I interact with the user interface,
then it should clearly display both direct upload and link input options.
The text was updated successfully, but these errors were encountered: