Cannot upload file after upgrade
Permalink
Recently I updated from version 5.7.5.13 to 8.5.2. I am now not able to upload PDF files. Possibly other file types as well, although I CAN upload .jpg files of similar size just fine.
In the UI after choosing the pdf file, a green bar grows across the box, then turns to red. When I hover over the box, it turn red with the message "Unable to find the specified folder". Also in dev tools, the ajax request returned as status of "422 (Unprocessable Entity)"
A few of the things I checked after searching this forum
- The size is around 2 MB, well below the PHP limits I have set.
- my application/files folder has 777 permission
My System Info
# concrete5 Version
Core Version - 8.5.2
Version Installed - 8.5.2
Database Version - 20190925072210
# Database Information
Version: 10.3.22-MariaDB
SQL Mode: STRICT_TRANS_TABLES,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION
# concrete5 Packages
Fruitful (1.1.1)
# concrete5 Overrides
blocks/alert_banner/add.php, blocks/alert_banner/controller.php, blocks/alert_banner/db.xml, blocks/alert_banner/edit.php, blocks/alert_banner/form_setup_html.php, blocks/alert_banner/icon.png, blocks/alert_banner/view.php, blocks/alert_banner, themes/blank/blank.php, themes/blank/description.txt, themes/blank/thumbnail.png, themes/blank
# concrete5 Cache Settings
Block Cache - On
Overrides Cache - On
Full Page Caching - On - In all cases.
Full Page Cache Lifetime - Only when manually removed or the cache is cleared.
# Server Software
Apache
# Server API
cgi-fcgi
# PHP Version
7.2.28
# PHP Extensions
bcmath, bz2, calendar, cgi-fcgi, Core, ctype, curl, date, dba, dom, enchant, exif, fileinfo, filter, ftp, gd, gettext, gmp, hash, iconv, imagick, imap, intl, json, ldap, libxml, mbstring, mysqli, mysqlnd, odbc, openssl, pcntl, pcre, PDO, pdo_mysql, PDO_ODBC, pdo_pgsql, pdo_sqlite, pgsql, Phar, posix, pspell, readline, Reflection, session, shmop, SimpleXML, snmp, soap, sockets, SPL, sqlite3, standard, sysvmsg, sysvsem, sysvshm, tokenizer, wddx, xml, xmlreader, xmlrpc, xmlwriter, xsl, zip, zlib
# PHP Settings
max_execution_time - 30
log_errors_max_len - 1024
max_file_uploads - 20
max_input_nesting_level - 64
max_input_time - -1
max_input_vars - 1000
memory_limit - 128M
post_max_size - 8M
upload_max_filesize - 8M
ldap.max_links - Unlimited
mysqli.max_links - Unlimited
mysqli.max_persistent - Unlimited
odbc.max_links - Unlimited
odbc.max_persistent - Unlimited
pcre.backtrack_limit - 1000000
pcre.recursion_limit - 100000
pgsql.max_links - Unlimited
pgsql.max_persistent - Unlimited
session.cache_limiter - <i>no value</i>
session.gc_maxlifetime - 7200
soap.wsdl_cache_limit - 5
In the UI after choosing the pdf file, a green bar grows across the box, then turns to red. When I hover over the box, it turn red with the message "Unable to find the specified folder". Also in dev tools, the ajax request returned as status of "422 (Unprocessable Entity)"
A few of the things I checked after searching this forum
- The size is around 2 MB, well below the PHP limits I have set.
- my application/files folder has 777 permission
My System Info
# concrete5 Version
Core Version - 8.5.2
Version Installed - 8.5.2
Database Version - 20190925072210
# Database Information
Version: 10.3.22-MariaDB
SQL Mode: STRICT_TRANS_TABLES,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION
# concrete5 Packages
Fruitful (1.1.1)
# concrete5 Overrides
blocks/alert_banner/add.php, blocks/alert_banner/controller.php, blocks/alert_banner/db.xml, blocks/alert_banner/edit.php, blocks/alert_banner/form_setup_html.php, blocks/alert_banner/icon.png, blocks/alert_banner/view.php, blocks/alert_banner, themes/blank/blank.php, themes/blank/description.txt, themes/blank/thumbnail.png, themes/blank
# concrete5 Cache Settings
Block Cache - On
Overrides Cache - On
Full Page Caching - On - In all cases.
Full Page Cache Lifetime - Only when manually removed or the cache is cleared.
# Server Software
Apache
# Server API
cgi-fcgi
# PHP Version
7.2.28
# PHP Extensions
bcmath, bz2, calendar, cgi-fcgi, Core, ctype, curl, date, dba, dom, enchant, exif, fileinfo, filter, ftp, gd, gettext, gmp, hash, iconv, imagick, imap, intl, json, ldap, libxml, mbstring, mysqli, mysqlnd, odbc, openssl, pcntl, pcre, PDO, pdo_mysql, PDO_ODBC, pdo_pgsql, pdo_sqlite, pgsql, Phar, posix, pspell, readline, Reflection, session, shmop, SimpleXML, snmp, soap, sockets, SPL, sqlite3, standard, sysvmsg, sysvsem, sysvshm, tokenizer, wddx, xml, xmlreader, xmlrpc, xmlwriter, xsl, zip, zlib
# PHP Settings
max_execution_time - 30
log_errors_max_len - 1024
max_file_uploads - 20
max_input_nesting_level - 64
max_input_time - -1
max_input_vars - 1000
memory_limit - 128M
post_max_size - 8M
upload_max_filesize - 8M
ldap.max_links - Unlimited
mysqli.max_links - Unlimited
mysqli.max_persistent - Unlimited
odbc.max_links - Unlimited
odbc.max_persistent - Unlimited
pcre.backtrack_limit - 1000000
pcre.recursion_limit - 100000
pgsql.max_links - Unlimited
pgsql.max_persistent - Unlimited
session.cache_limiter - <i>no value</i>
session.gc_maxlifetime - 7200
soap.wsdl_cache_limit - 5
Try renaming the pdf file to remove the dot in the file name.
That was it. I removed one of the extra periods and it worked. Odd, that it allows some periods in the name but not that one... maybe the number of them, or location is the issue. I could do some testing I guess, but I'll just be sure to not have periods in the name moving forward.
So I was able to get a file uploaded yesterday after taking out one of the periods. Today I'm getting the same error trying to upload a PDF without any periods. It did have a space in the name so I removed that too and made sure it only had letters in the name. Still no luck. Any other ideas what may be causing this issue.