-
Notifications
You must be signed in to change notification settings - Fork 23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
getUploadedFiles always returns an empty array #3
Comments
Do you have this hidden field in the DOM? What happen to its "value" after uploading a file. You must have a pretty up-to-date version of Media.
After upload:
|
Thank you for your time! I do have this hidden field, here it is before and after upload - it's not changing:
'nxs' is the property I am using - with this ViewHelper:
|
That's the problem. Do you have a JS error? I would need to double check whether I require jQuery in this build. Ideally it must be decoupled from jQuery. |
No JS error.
|
Here would be the source file where to debug at line 92. Pay attention, it must be edited in the build file https://github.com/fabarea/media_upload/blob/master/Resources/Public/Build/media_upload.js#L11254 I am offline for the rest of the day. Hope you can figure out something. |
Interesting: I replaced the min.js with the not-min.js and now I got following hidden field: But still: the ->uploadedFiles() is empty. How can/should I pass this hiddenfield to my processAction ? |
That shouldn't be empty. When specifying the property in the VH, "nxs" in your case, it must also be told in the method as:
I think it was discreetly mentioned in the example of the README. |
Let me know if that does not work for you. |
For me the problem still exists. The VH returns the described hidden field, but the value is always empty. Also |
I had this problem when I deleted de line 38 in |
After the successfull upload to the typo3temp I link to a different action. In the actions' controller I try to access the files as described in the manual with: $uploadedFiles = $this->uploadFileService->getUploadedFiles(); but it always returns empty.
Do I have to send some additional params to this action ?
Thanks and best regards,
Stefan.
The text was updated successfully, but these errors were encountered: