How to capture {%=file.name%} into php variable?

24 views
Skip to first unread message

Robert Pelletier

unread,
Oct 7, 2015, 11:55:25 AM10/7/15
to jQuery-File-Upload
I am not very familiar with the language used in some of these scripts. Therefore, I apologize for some ignorance on my part. I am very familiar with PHP and have noticed there are portions of the files that have the language below (for example) in them. I am particularly interested in capturing the {%=file.name%} variable into a php variable for use elsewhere. However, I have been unable to do so. It only captures the literal text "{%=file.name%}". Would anyone know how to accomplish this? I would appreciate any assistance. Thank you.


    {%=file.thumbnailUrl?'data-gallery':''%}
                  {% if (file.url) { %}
                   <video controls="" src="{%=file.url%}"></video>
                       
                {% } else { %}
                    <span>{%=file.name%}</span>
                {% } %}
Reply all
Reply to author
Forward
0 new messages