Custom Fields - Send files in the contact form. #17936
Replies: 16 comments
-
A general file upload field without access to the media manager in core would be indeed great. +1 This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/17936. |
Beta Was this translation helpful? Give feedback.
-
A general purpose file upload field isn't practical (even with "normal" forms), there is a lot of extra logic that has to be wired up to process the form submission and specifically the uploads that makes it pretty difficult to create a general purpose solution. File uploads are generally something you need to have something specific to your workflow to use. |
Beta Was this translation helpful? Give feedback.
-
in the first line it is me that I get pictures sent. of course it could be other file formats. Why should not that be practical? It always depends on for which purpose this is used. This should then perhaps be selected via a selection field. Which internal networks there must be .. no idea. I ask the question to the professionals. if this is not possible, then that is ok. if the effort is not worth it, then this is also ok.
|
Beta Was this translation helpful? Give feedback.
-
File inputs are probably the most trickiest of the HTML input types because they require you to write a server side processor for that data specifically. The logic processing the data has to read the file upload data, perform validation rules on it (based on your form's configuration as well as basic security checks), and handle putting it into the filesystem in the desired location. A lot of that upload logic is going to be very specific to a use case, so it's difficult to write a single plugin that just handles all types of file uploads with an unlimited number of constraints/configurations. The contact form is an even more unique case as if you're looking for the email that gets sent out to have the upload(s) as attachments then the custom field logic has to be able to hook into the email sending logic; there isn't an integration point for that right now. Not saying that this absolutely cannot be done, but to make a generic upload custom field type takes a lot more planning and consideration than most other field types. |
Beta Was this translation helpful? Give feedback.
-
thank you for your information, then I must look for a different solution |
Beta Was this translation helpful? Give feedback.
-
+1 Besides, what about the up-coming new media-manager? Doesn't it have an accompanying media field and more flexible features? For instance: Restrict uploads and formats per field, restrict directories, restrict UI display ... Hopefully a better ACL and fine-grained permissions. |
Beta Was this translation helpful? Give feedback.
-
Set to "closed" on behalf of @franz-wohlkoenig by The JTracker Application at issues.joomla.org/joomla-cms/17936 |
Beta Was this translation helpful? Give feedback.
-
closed as following the Comment of @mbabker This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/17936. |
Beta Was this translation helpful? Give feedback.
-
ACL in media manager needs to be discussed if we really want to got that way as it requires a full blown document manager solution which we have already extensions which are doing it. DPAttachments would also not fit for this use case and I have no plans to migrate that into core as extensions should do jobs like that. |
Beta Was this translation helpful? Give feedback.
-
Why is it already closed @franz-wohlkoenig ? @mbabker said also "Not saying that this absolutely cannot be done" |
Beta Was this translation helpful? Give feedback.
-
Set to "open" on behalf of @franz-wohlkoenig by The JTracker Application at issues.joomla.org/joomla-cms/17936 |
Beta Was this translation helpful? Give feedback.
-
reopened as stated above. This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/17936. |
Beta Was this translation helpful? Give feedback.
-
The problem with such a field is that it requires security checks and heavy server side processing. That processing would be very situational as to what should be allowed and where to store the uploaded files. Imho, we shouldn't add a generic custom field for file upload. This is one of the cases where 3rd party extensions can jump in and provide specialised solutions for the various use cases. |
Beta Was this translation helpful? Give feedback.
-
I think this issue should be against the new media manager (NMM) repo. |
Beta Was this translation helpful? Give feedback.
-
Any news about a Upload File - Custom Field? |
Beta Was this translation helpful? Give feedback.
-
I've recently attempted to produce a website showcase with Joomla custom fields, where users of a certain component can register and add a description of their live website from the frontend. One of the problems I ran into is that I can't limit an author to see only his/her own homepage screenshot in the media manager. However, there is a new extension (I didn't test it yet) which might fill the shortcomings of using Joomla custom fields for such custom field applications. See: Field JT Fileupload Currently it is limited to uploading pdf files, but I think it's pretty easy to add more file types. This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/17936. |
Beta Was this translation helpful? Give feedback.
-
Steps to reproduce the issue
Unfortunately, I have found nothing suitable and should make this request already exist - please delete this.
If you want to install a custom field in a contact form or similar, there is unfortunately not the possibility to create a field by sending files.
Would it be possible to include this?
-State the file size
-which file format can be sent.
-Selection of one or more files.
thx
Expected result
Actual result
System information (as much as possible)
Additional comments
Beta Was this translation helpful? Give feedback.
All reactions