Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Upload assets via data/string #2973

Closed
nateiler opened this issue Jun 8, 2018 · 1 comment
Closed

Upload assets via data/string #2973

nateiler opened this issue Jun 8, 2018 · 1 comment
Assignees

Comments

@nateiler
Copy link
Contributor

nateiler commented Jun 8, 2018

There seems to be a discrepancy with the filename when uploading an asset via base 64 string.

The Assets::normalizeData expects 'filename':

$this->_uploadedDataFiles = ['data' => $value['data'], 'filename' => $value['filename']];

However later, Assets::_getUploadedFiles expects 'filenames'

if (!empty($this->_uploadedDataFiles['filenames'][$index])) {

@andris-sevcenko
Copy link
Contributor

Thanks!

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants