Generic Upload Error

DeaMaree

New member
DaDaBIK version 11.0-Elba enterprise, installed on 08-28-2021
PHP Version: 7.3.30
mysql version: 5.7.35
Web server: Apache
Client: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:91.0) Gecko/20100101 Firefox/91.0
URL installation: https://portal.argenttech.net/dadabik_directory/

I am having trouble implementing the file upload feature. I have read all the documentation and every forum post I can find. No matter what I do, I get "Generic Upload Error" when trying to upload a file via the form.

my config.custom.php settings are:
$enable_uploads = 1;
$upload_field_type = 'ajax';
$upload_directory = 'home/upload_directory/';
$upload_import_directory = 'home/upload_import_directory/';

Both upload folders have 777 permissions.

My PHP settings are:
file_uploads - on
max_file_uploads - 20
upload_max_filesize - 999M

I have tried upload directory folders both inside and outside of my public_html... I have tweaked the config.custom.php settings several times to no avail... so, I have broken down and asked for assistance.
 

DeaMaree

New member
Ok. I got it to work by leaving the $upload_directory = '' blank. Would still like to move the upload directory outside of the public_html, but it's working for now.
 

eugenio

Administrator
Staff member
Hello,
not sure where the directory you wanted to use is located but the path should be absolute, if there is a /home/upload_directory dir in your system, the upload directory should be:
$upload_directory = '/home/upload_directory/';

Best,
 
Top