× Please submit new Bug Reports on GitHub: github.com/Jensen-Technologies/component-creator-issues/issues

File Field (upload) question

4 yıl 7 ay önce #9707 Yazan: jeff long
File Field (upload) question, jeff long tarafından oluşturuldu
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.

Lütfen sohbete katılmak için Giriş ya da Hesap açın.

4 yıl 7 ay önce #9708 Yazan: Søren Beck Jensen
Søren Beck Jensen tarafından File Field (upload) question konusunda yanıtlandı
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.

Søren Beck Jensen
Founder, Component-Creator.com

Lütfen sohbete katılmak için Giriş ya da Hesap açın.

4 yıl 7 ay önce #9709 Yazan: jeff long
jeff long tarafından File Field (upload) question konusunda yanıtlandı
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

Lütfen sohbete katılmak için Giriş ya da Hesap açın.

4 yıl 7 ay önce #9710 Yazan: Søren Beck Jensen
Søren Beck Jensen tarafından File Field (upload) question konusunda yanıtlandı
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.

Søren Beck Jensen
Founder, Component-Creator.com

Lütfen sohbete katılmak için Giriş ya da Hesap açın.

4 yıl 7 ay önce - 4 yıl 7 ay önce #9711 Yazan: Carl Fuentes
Carl Fuentes tarafından File Field (upload) question konusunda yanıtlandı
Hi,
  1. The MIME is located in the Table class where the process of upload is happening.
  2. Adding appropriate attributes to the XML will not mess with the code
  3. 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
  4. the upload folder is default as "/uploads/" if it is not presented, it will be created.
Son Düzenleme: 4 yıl 7 ay önce Düzenleyen:Carl Fuentes

Lütfen sohbete katılmak için Giriş ya da Hesap açın.

4 yıl 7 ay önce #9712 Yazan: jeff long
jeff long tarafından File Field (upload) question konusunda yanıtlandı
Thank you Soren and Carl,

I appreciate the information.

Lütfen sohbete katılmak için Giriş ya da Hesap açın.

Sayfa oluşturma süresi: 0.056 saniye
Geliştiren: Kunena Forum