anchor-cms
anchor-cms copied to clipboard
Custom filed with type 'file' dont save filename.
Summary
If load image in 'file' field, its upload by js, but info dont save to db. Other files dont uploads and dont saves to db. Array $_FILES is empty.
Context details (if applicable)
Anchor 0.12.1 installed by composer(migration 211)
Did you say you're uploading a file with the file extension called .file
?
No, file with .png or .zip. And this extensions was allowed in custom's field menu.
So, in debugger on function files() (Extend.php) array $_FILES empty.
Ah sorry, the title you gave confused me a little.
Cause - AJAX form submit script on editor.js line 195. One else bug - this script has error in IE11 - its redirect page to 'admin/posts/edit/undefined' page.
Ah I see, thanks for the additional info. Have you tried this in another browser? I realise this isn't a solid fix, but at least we can scope this down to a browser issue.
In last FF and Chrome there is no bug with redirection after ajax script end, but files still no downloads.