Welcome to Mediachase Community Sign in | Join | Help    
in Search   

File Attribute

Last post Tue, Oct 14 2008, 4:15 PM by truthbrother. 11 replies.
Sort Posts: Previous Next
  •  Fri, Oct 10 2008, 1:55 PM 10414

    File Attribute

    I can not access the URL to a file attribute?  I need to attach this to a hyperlink but it is blank.  Please give me an example.
  •  Fri, Oct 10 2008, 4:21 PM 10415 in reply to 10414

    Re: File Attribute

    Hi cblaze22,
    Can you please give further information about your issue:
    I'm unclear on what you mean by "URL to a file attribute".
    Usually, URLs point to physical resources such as files themselves.
    Do you mean file permission attributes?
    Do you mean attributes as in html/xml element attributes?
    Do you have a public url to a page where this problem exists?

    Thanks,
    random
  •  Mon, Oct 13 2008, 8:15 AM 10419 in reply to 10415

    Re: File Attribute

    There are ItemAttributes, Images, and Files tied to an Item (Product/Sku).  I can not access anything dealing with a URL to a file. I can access the image url and ItemAttributes fine.  When I choose a Class Attribute in the Commerce Manager with a type of file, and upload a file with a product, I want to access this on the public store and have a hyperlink point to it, but my value is always blank, but there is a file name, content type, but no url.
  •  Mon, Oct 13 2008, 9:15 AM 10421 in reply to 10419

    Re: File Attribute

    If you still do not undertand here is some code.

               string s = new Item().ItemAttributes.File[0].Value;

    The value is always blank.
  •  Mon, Oct 13 2008, 9:07 PM 10422 in reply to 10421

    Re: File Attribute

    Does anyone look at these forums?
  •  Tue, Oct 14 2008, 10:01 AM 10427 in reply to 10422

    Re: File Attribute

    I need a solution to this?
  •  Tue, Oct 14 2008, 1:01 PM 10429 in reply to 10427

    Re: File Attribute

    Hi,

    Have you taken a look at this following post?

    http://www.mediachase.com/Community/forums/thread/5976.aspx

    Mediachase Software

  •  Tue, Oct 14 2008, 1:18 PM 10430 in reply to 10429

    Re: File Attribute

    So the file attribute shouldnt be used to get the url you upload?  An an extra field needs to be created for just the url?
  •  Tue, Oct 14 2008, 1:40 PM 10431 in reply to 10430

    Re: File Attribute

    http://www.mediachase.com/Community/forums/thread/3538.aspx

    Please read that.  Has this not been fixed?
  •  Tue, Oct 14 2008, 2:08 PM 10432 in reply to 10431

    Re: File Attribute

    There is no URL for a file. Basically the object you get is ItemFile with a following attributes (if this is a meta attribute and returned by ItemAttributes collection):

    file.ContentType - describes content type of the file, like image/file and so on

    file.FileContents - this is an actual binary content

    file.FileName - name of the file.

    These properties are set by ServicePipeHelper class and if you want, you can modify and add an URL. Otherwise, you you really want a URL, you will need to first save the FileContents property to a file and then redirect user to that URL.

    Hope this helps.

    PS: the issue mentioned above was resolved and is related to the Web Services in version 4.0.x.

     

  •  Tue, Oct 14 2008, 2:16 PM 10433 in reply to 10432

    Re: File Attribute

    Thanks.  Why couldnt you just do files like images and be able to reference them?  Ill try to do my best to resolve this thanks.
  •  Tue, Oct 14 2008, 4:15 PM 10434 in reply to 10433

    Re: File Attribute

    I hope this gives you enough technical guidance. Let us know if you need more assistance from us.

    Mediachase Software
View as RSS news feed in XML
Site Terms | Privacy Policy | About Us | Contact Us
Running on Mediachase eCommerce Framework 4.0.
  Copyright © Mediachase, LTD. 1997-2006. All Rights Reserved

E-commerce, HelpDesk, Service Desk & Project Management Software, alternatives to Microsoft Project Server & Sharepoint Collaboration Server
project management software | microsoft project server | sharepoint collaboration server | issues management, helpdesk & service desk
Powered by Community Server, by Telligent Systems