Skip to content
This repository has been archived by the owner on May 19, 2020. It is now read-only.

Custom filed with type 'file' dont save filename. #1054

Open
Trysystems opened this issue Mar 29, 2016 · 6 comments
Open

Custom filed with type 'file' dont save filename. #1054

Trysystems opened this issue Mar 29, 2016 · 6 comments

Comments

@Trysystems
Copy link

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)

@daviddarnes
Copy link
Member

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

@Trysystems
Copy link
Author

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.

@daviddarnes
Copy link
Member

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

@Trysystems
Copy link
Author

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.

@daviddarnes
Copy link
Member

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.

@Trysystems
Copy link
Author

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants