Forums / Setup & design / Problem with file attribute.

"Please Note:
  • At the specific request of Ibexa we are changing this projects name to "Exponential" or "Exponential (CMS)" effective as of August, 11th 2025.
  • This project is not associated with the original eZ Publish software or its original developer, eZ Systems or Ibexa".

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