×
Please submit new Bug Reports on GitHub: github.com/Jensen-Technologies/component-creator-issues/issues
File Field (upload) question
jeff long
Nouveau membre
Posts: 9
il y a 4 ans 6 mois #9707
par jeff long
File Field (upload) question a été créé par jeff long
Hello,
Reference the File Field (Upload file input box).
Where is the MIME (file extension.....i.e. ,txt . pdf) and Path information stored in the component for file uploads?
Thank you.
Reference the File Field (Upload file input box).
Where is the MIME (file extension.....i.e. ,txt . pdf) and Path information stored in the component for file uploads?
Thank you.
Connexion ou Créer un compte pour participer à la conversation.
Søren Beck Jensen
Administrateur
Posts: 81
il y a 4 ans 6 mois #9708
par Søren Beck Jensen
Søren Beck Jensen
Founder, Component-Creator.com
Réponse de Søren Beck Jensen sur le sujet File Field (upload) question
You can read more about this field type here:
docs.joomla.org/File_form_field_type
I am not sure you can change where the files are uploaded using that file type.
docs.joomla.org/File_form_field_type
I am not sure you can change where the files are uploaded using that file type.
Søren Beck Jensen
Founder, Component-Creator.com
Connexion ou Créer un compte pour participer à la conversation.
jeff long
Nouveau membre
Posts: 9
il y a 4 ans 6 mois #9709
par jeff long
Réponse de jeff long sur le sujet File Field (upload) question
Hello Mr. Jensen,
I'm assuming your the owner.....love this site/product. Thank you
In the creator when adding that field, it has inputs for the Folder and the MIME info. I thought it would appear in the XML file much like shown in the doc's you mention, but its not there. I've looked all through the files(code) and see no reference to how those values are set.
How does one modify those after the fact?
Will adding the appropriate attributes to the XML mess it up?
Is there a way to default to the Main Joomla Settings?
Thanks
Jeff
I'm assuming your the owner.....love this site/product. Thank you
In the creator when adding that field, it has inputs for the Folder and the MIME info. I thought it would appear in the XML file much like shown in the doc's you mention, but its not there. I've looked all through the files(code) and see no reference to how those values are set.
How does one modify those after the fact?
Will adding the appropriate attributes to the XML mess it up?
Is there a way to default to the Main Joomla Settings?
Thanks
Jeff
Connexion ou Créer un compte pour participer à la conversation.
Søren Beck Jensen
Administrateur
Posts: 81
il y a 4 ans 6 mois #9710
par Søren Beck Jensen
Søren Beck Jensen
Founder, Component-Creator.com
Réponse de Søren Beck Jensen sur le sujet File Field (upload) question
The MIME types should be added to the XML "accept"attribute yes. If they are not, it is a bug.
As for folder, then I do not see that attribute on the Joomla field. But it is probable that we have implemented something extra that I can't remember. I will ask Carl to investigate and get back to you on both issues.
As for folder, then I do not see that attribute on the Joomla field. But it is probable that we have implemented something extra that I can't remember. I will ask Carl to investigate and get back to you on both issues.
Søren Beck Jensen
Founder, Component-Creator.com
Connexion ou Créer un compte pour participer à la conversation.
Carl Fuentes
Modérateur
Posts: 28
il y a 4 ans 6 mois - il y a 4 ans 6 mois #9711
par Carl Fuentes
Réponse de Carl Fuentes sur le sujet File Field (upload) question
Hi,
- The MIME is located in the Table class where the process of upload is happening.
- Adding appropriate attributes to the XML will not mess with the code
- It is not added to the XML is because we are using the file MIME to verify the EXACT file to upload whereas added to XML only tell the browser to show only that certain file when browse by file input
- the upload folder is default as "/uploads/" if it is not presented, it will be created.
Dernière édition: il y a 4 ans 6 mois par Carl Fuentes.
Connexion ou Créer un compte pour participer à la conversation.
jeff long
Nouveau membre
Posts: 9
il y a 4 ans 6 mois #9712
par jeff long
Réponse de jeff long sur le sujet File Field (upload) question
Thank you Soren and Carl,
I appreciate the information.
I appreciate the information.
Connexion ou Créer un compte pour participer à la conversation.
Temps de génération de la page : 0.056 secondes