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

How to upload the file from File field

4 Anni 3 Mesi fa #9750 da johng
How to upload the file from File field è stato creato da johng
I have created a component where one of the fields is a file field that uploads an image and saves the path in the corresponding table field. I cant get the file field to work (everything else works clockwork). Basically I am not sure where to add, what.

I think I need to add the save file functionality, but Im not sure where exactly.

Any help would be appreciated.

Si prega Accedi o Crea un account a partecipare alla conversazione.

4 Anni 3 Mesi fa #9751 da Simon Beekman
Risposta da Simon Beekman al topic How to upload the file from File field

Si prega Accedi o Crea un account a partecipare alla conversazione.

4 Anni 3 Mesi fa - 4 Anni 3 Mesi fa #9752 da johng
Risposta da johng al topic How to upload the file from File field
Yes, in the field for the MIMEs I have: image/jpeg,application/pdf

In the upload directory I have: /images/archive/

Disclaimer: Im not really a php dev, and my knowledge of this is quite (to very) limited, so this great tool is like Mana! :D



EDIT#1: To be more precise, I get no error when I click save. It actually saves all data on the table except the file field's value.

EDIT#2: I noticed that the upload directory path had two '/' on each side so I rebuilt the component without the outer slashes. Still for some reason there doesnt seem to be any uploading happening.

EDIT#3: Never mind. It was my php setting for file uploads that was wrong.

It now works and I am so happy cause this opens up some doors on some other apps I want to create.
Ultima Modifica 4 Anni 3 Mesi fa da johng. Motivo: further explanation of the problem

Si prega Accedi o Crea un account a partecipare alla conversazione.

Tempo creazione pagina: 0.095 secondi
Powered by Forum Kunena

We use cookies so that you can place orders and we can provide a better service. You can control the use of cookies at the individual browser level. If you reject cookies, you may still use our website, but your ability to use some features or areas of our website may be limited.