anchor-cms icon indicating copy to clipboard operation
anchor-cms copied to clipboard

Custom filed with type 'file' dont save filename.

Open Trysystems opened this issue 8 years ago • 6 comments

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)

Trysystems avatar Mar 29 '16 10:03 Trysystems

Did you say you're uploading a file with the file extension called .file ?

daviddarnes avatar Mar 29 '16 10:03 daviddarnes

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.

Trysystems avatar Mar 29 '16 10:03 Trysystems

Ah sorry, the title you gave confused me a little.

daviddarnes avatar Mar 29 '16 10:03 daviddarnes

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.

Trysystems avatar Mar 30 '16 13:03 Trysystems

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.

daviddarnes avatar Mar 31 '16 03:03 daviddarnes

In last FF and Chrome there is no bug with redirection after ajax script end, but files still no downloads.

Trysystems avatar Mar 31 '16 09:03 Trysystems