×
Please submit new Bug Reports on GitHub: github.com/Jensen-Technologies/component-creator-issues/issues
How to upload the file from File field
johng
Nieuw lid
Posts: 2
4 jaren 5 maanden geleden #9750
door johng
How to upload the file from File field werd gestart door 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.
I think I need to add the save file functionality, but Im not sure where exactly.
Any help would be appreciated.
Gelieve Inloggen of een account aanmaken om deel te nemen aan het gesprek.
Simon Beekman
Administrator
Posts: 13
4 jaren 5 maanden geleden #9751
door Simon Beekman
Beantwoord door Simon Beekman in topic How to upload the file from File field
Are you using the correct Mime Types? developer.mozilla.org/en-US/docs/Web/HTT...E_types/Common_types
Gelieve Inloggen of een account aanmaken om deel te nemen aan het gesprek.
johng
Nieuw lid
Posts: 2
4 jaren 5 maanden geleden - 4 jaren 5 maanden geleden #9752
door johng
Beantwoord door johng in 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!
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.
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!
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.
Laatst bewerkt 4 jaren 5 maanden geleden door johng. Reden: further explanation of the problem
Gelieve Inloggen of een account aanmaken om deel te nemen aan het gesprek.
Tijd voor maken pagina: 0.057 seconden