This site has been archived and you can no longer log in or post new messages. For up-to-date community resources please visit ezplatform.com

eZ Community » Forums » eZ Publish 5 Platform » [Resolved] How to resolve File...
expandshrink

[Resolved] How to resolve File fieldtype uri ?

[Resolved] How to resolve File fieldtype uri ?

Wednesday 10 December 2014 7:06:16 pm - 1 reply

Hello

I have a class with "File" fieldtype to upload svg files.
I display my file uri like this : 

{% set logo_svg_uri = asset( ez_field_value( content, "logo" ).uri ) %}

the filepath look like this : 

/var/thebigfrog/storage/original/image/4f8de3d5f85fbd80ca29a64518dc5b90.svg

But i get this error when i try to display this url : 

Argument '$id' is invalid: Prefix images not found in original/image/4f8de3d5f85fbd80ca29a64518dc5b90.svg

Modified on Thursday 11 December 2014 11:10:21 am by Guillaume Kempfer

Thursday 11 December 2014 11:09:52 am

It was an Apache rule issue.

I added this rule, and now it works.

RewriteRule ^/var/([^/]+/)?storage/original/image/.*.svg - [L]

expandshrink

You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu

Proudly Developed with from