Click green Upload button, upload PDF file. Expected result. Pdf uploaded without errors. Joomla 3.7.2 with PHP 7.1.1. Zero-24 self-assigned this May 24, 2017. After telling me that fileinfo and mime_content_type were enabled, they were able to get the PDF upload working under PHP 5.6. (In the control panel, go to PHP version and switch it.) However, a second support person has come back to me after that change was made. He switched PHP 5.6 back to PHP 7.0. The PDF upload now works.
Active5 years, 3 months ago
I have a field in my form which is of type file. When the user clicks on the save icon, I want to naturally upload the file to the server and save the filename in the database. I tried testing this out by echoing the filename but it doesn't seem to be working. Also, how do I add the filename to the database? Is it done in the model? Thanks!
controllers/customcom.php
models/forms/customcom.xml
Sony hd tuner. Looks like you're enjoying the discussion, but you're not signed up for an account.
JUX Download is a great Joomla Component which help users download different file types, which is developed by JoomlaUX team. This extension allows admin to set permission for different access level to download their files. Download & Extend. I'm quite new to Joomla and I would like to know how to upload PDF files. As what I've seen in the previous thread, just upload the. JUX Download is a great Joomla Component which help users download different file types, which is developed by JoomlaUX team. This extension allows admin to set permission for different access level to download their files.
File Upload Download Service
Moo33
Moo33Moo3356133 gold badges1010 silver badges2323 bronze badges
2 Answers
Just figured it out.
The correct way is
That should do the trick.The $file array then holds the following keys:
- error
- name
- size
- tmp_name
- type
I've deleted my original answer as it was misleading.
BakualBakual2,59611 gold badge99 silver badges1616 bronze badges
Get inspired by Media manager:
Just note that this component is quite old (refactoring is in preparations)
piotr_czpiotr_cz