Problem with file attribute.

Author Message

Mohammad Tufail

Thursday 27 March 2008 7:32:40 am

Hi,

I have created a custom class with three attributes having identifier title <b>textline</b>, description <b>text block</b> and file_upload <b>File</b>. In the administration interface it is shown correctly with filename and size. But on the user end of the website the file name is shown correctly but the file size is shown 0 B and also when when we click on the file name the following error appears.

Object is unavailable

The object you requested is not currently available.

Possible reasons for this are:

* The id or name of the object was misspelled, try changing it.
* The object is no longer available on the site.

Any Suggestion.

Ɓukasz Serwatka

Friday 28 March 2008 1:17:40 am

Hi,

Make sure that public siteaccess uses the same VarDir what admin siteaccess.

site.ini.append.php:
[FileSettings]
VarDir=var/your_site

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.