Jump to:

7940 Posts in 1543 Topics by 946 members

DataObjectManager Module

SilverStripe Forums » DataObjectManager Module » Cant upload form my Computer ?

Discuss the DataObjectManager module, and the related ImageGallery module.

Moderators: martimiz, UncleCheese, Sean, biapar, Willr, Ingo, swaiba, simon_w

Page: 1 2 3 4
Go to End
Author Topic: 3428 Views
  • cumquat
    Avatar
    Community Member
    198 Posts

    Re: Cant upload form my Computer ? Link to this post

    You sir, are a star, cheers.

  • cumquat
    Avatar
    Community Member
    198 Posts

    Re: Cant upload form my Computer ? Link to this post

    As a heads up have also found a problem with regards to the name of an album. If it contains a full stop (period) then it falls over with this error on line 194, granted it may have always been there and using punctuation can be a pain on the web but i know my client has clients that have full stops in their names, you have to love artists :o)

    Source

    185       if($url_segment = Director::urlParam('ID')) {
    186          $albums = DataObject::get($this->albumClass,"ImageGalleryPageID = {$this->ID} AND File.Name = '$url_segment'", "", "LEFT JOIN File ON File.ID = FolderID");
    187          return $albums ? $albums->First() : false;
    188       }
    189       return false;
    190    }
    191    
    192    public function AlbumTitle()
    193    {
    194       return $this->CurrentAlbum()->AlbumName;
    195    }
    196
    197    public function AlbumDescription()
    198    {
    199       return $this->CurrentAlbum()->Description;
    200    }

  • UncleCheese
    Avatar
    4085 Posts

    Re: Cant upload form my Computer ? Link to this post

    What is the error you're getting?

  • cumquat
    Avatar
    Community Member
    198 Posts

    Re: Cant upload form my Computer ? Link to this post

    Ok heres the top part of the error i though i had added that, unfortunate name the guy is using but hey if thats what he wants to be called.

    [Notice] Trying to get property of non-object
    GET /artists/album/T.WAT
    Line 194 in /home/sites/myriad-services.co.uk/public_html/subs/gallery90/image_gallery/code/ImageGalleryPage.php

  • UncleCheese
    Avatar
    4085 Posts

    Re: Cant upload form my Computer ? Link to this post

    Hey, everyone.. Made a few javascript fixes today that get rid of a lot of those errors in IE. Please run an SVN update and let me know the results.

    @ cumquat, I made a patch to clean up album names before saving. Thanks for the heads up on that. After updating your code, you may have to save the album once to fix the error, as that will generate a new folder name for the offending album. It will not result in a loss of data.

  • cumquat
    Avatar
    Community Member
    198 Posts

    Re: Cant upload form my Computer ? Link to this post

    Morning,

    Well that all seems to work and as it's getting it's first viewing with the client in a few hours i'm a very happy bunny.

    Cheers for that.

    Mick

  • raZbi
    Avatar
    Community Member
    11 Posts

    Re: Cant upload form my Computer ? Link to this post

    Hello gents,

    This is what i get, trying to upload:

    As i'm newbie, may i ask you to point with a finger, what should i change?

  • staggerwing
    Avatar
    Community Member
    6 Posts

    Re: Cant upload form my Computer ? Link to this post

    Just started with SS to help get a site going for an organization and I'm having this same problem. No option to "Upload from my computer". I've gone through all the steps mentioned here. I just installed all of this, the latest versions, over the last couple of days. The only thing I didn't understand in these posts is where it's mentioned to "run and SVN upload". What is that and how do I do run it?

    This is happening in all browsers for me; IE8, Chrome, Firefox, Opera, and Safari. The demo works fine for me.

    Any suggestions? (details directions as to what file and where to find it would be helpful)

    Thanks!!

    3428 Views
Page: 1 2 3 4
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.