Giter Club home page Giter Club logo

Comments (10)

fabarea avatar fabarea commented on August 22, 2024 1

Let me know if that does not work for you.

from media_upload.

caessard avatar caessard commented on August 22, 2024 1

I had this problem when I deleted de line 38 in Resources\Private\Templates\ViewHelpers\Widget\Upload\Index.html for remove the 'View' button . When set the line <a class="view-btn btn btn-small btn-info hide" target="_blank">{f:translate(key: 'fineUploader.view')}</a> again, I could have the uploaded files in array again

from media_upload.

fabarea avatar fabarea commented on August 22, 2024

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.

<input class="first" id="uploaded-files-images" name="tx_mediaupload_pi1[uploadedFiles][images]" value="" type="hidden">

After upload:

<input class="first" id="uploaded-files-images" name="tx_mediaupload_pi1[uploadedFiles][images]" value="53c7462e-a171-41c8-822f-3b996f3c9018-2014-10-01_1052.png" type="hidden">

from media_upload.

nyxos avatar nyxos commented on August 22, 2024

Thank you for your time!

I do have this hidden field, here it is before and after upload - it's not changing:

<input id="uploaded-files-nxs" type="hidden" name="tx_mediaupload_pi1[uploadedFiles][nxs]" value=""/>

'nxs' is the property I am using - with this ViewHelper:

<mu:widget.upload storage="2" property="nxs" />

from media_upload.

fabarea avatar fabarea commented on August 22, 2024

and after upload - it's not changing

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.

from media_upload.

nyxos avatar nyxos commented on August 22, 2024

No JS error.
Here's the Console output of Fine Uploader:

[Fine Uploader 5.0.8] Parsing template media_upload.min.js:16 [Fine Uploader 5.0.8] Template parsing complete media_upload.min.js:16 [Fine Uploader 5.0.8] Rendering template in DOM. media_upload.min.js:16 [Fine Uploader 5.0.8] Template rendering complete

from media_upload.

fabarea avatar fabarea commented on August 22, 2024

Here would be the source file where to debug at line 92.

https://github.com/fabarea/media_upload/blob/master/Resources/Public/Source/JavaScript/MediaUpload.js#L92

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.

from media_upload.

nyxos avatar nyxos commented on August 22, 2024

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 ?

from media_upload.

fabarea avatar fabarea commented on August 22, 2024

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:

$uploadedFiles = $this->uploadFileService->getUploadedFiles('nxs')

I think it was discreetly mentioned in the example of the README.

from media_upload.

jensmarquardt avatar jensmarquardt commented on August 22, 2024

For me the problem still exists. The VH returns the described hidden field, but the value is always empty. Also uploadedFileList and uploadedFiles in ShowUploadedController.php are always empty.

from media_upload.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.