Jump to:

10989 Posts in 2726 Topics by 1817 members

All other Modules

SilverStripe Forums » All other Modules » uploadify :: problem:: can't create directory

Discuss all other Modules here.

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

Page: 1 2
Go to End
Author Topic: 2479 Views
  • trumi
    Avatar
    Community Member
    14 Posts

    uploadify :: problem:: can't create directory Link to this post

    hello

    i deside to use uploadify for multiple file upload, because i see it allows to create folders where to upload files.
    i take modul from leftandmain.com, put in root , dev/build,..
    go to admin files and images, click add files to upload, uploadify show in popup, i write name of directory to create and nothing.

    when i upload images it writes No files attached ???

    i try with this in page

    static $has_one = array(
    'Mainimage' => 'File'
    );

    static $has_many = array (
          'AttachedFiles' => 'ArticleFile'
       );

    function getCMSFields() {
    $fields = parent::getCMSFields();

    $fields->addFieldToTab('Root.Content.Main', new TextField('Subtitle'), 'Content');
    $fields->addFieldToTab('Root.Content.Main', new DatePickerField('Date'), 'Content');
    $fields->addFieldToTab('Root.Content.Main', new TextField('Author'), 'Content');
    $fields->addFieldToTab("Root.Content.File", new FileUploadField('Mainimage','Upload a file'));
    $fields->addFieldToTab("Root.Content.Main", $MFile = new MultipleFileUploadField('AttachedFiles','Upload several files'),'Content');

    $MFile ->allowFolderSelection();

    return $fields;
    }

    cant create directory.

    when select files from existing and click insert and save page, when come back to edit page, images that i inserted are listed but images are not.

    please help

  • UncleCheese
    Avatar
    4085 Posts

    Re: uploadify :: problem:: can't create directory Link to this post

    Did you click the "change" button after typing in the new directory name?

    Where is your ArticleFile class?

    --------------------
    SilverStripe tips, tutorials, screencasts and more: http://www.leftandmain.com

  • trumi
    Avatar
    Community Member
    14 Posts

    Re: uploadify :: problem:: can't create directory Link to this post

    yes i clikc change button, i realy need help, i can give you access to ftp and admin page to see where is problem?

  • trumi
    Avatar
    Community Member
    14 Posts

    Re: uploadify :: problem:: can't create directory Link to this post

    my ArticleFile.php

    <?php
    /*
    * To change this template, choose Tools | Templates
    * and open the template in the editor.
    */

    /**
    * Description of ArticleFile
    *
    * @author ammar
    */
    class ArticleFile extends File{
       static $has_one = array (
          'ArticlePage' => 'ArticlePage'
       );
    }
    ?>

  • UncleCheese
    Avatar
    4085 Posts

    Re: uploadify :: problem:: can't create directory Link to this post

    Just checked in a patch. Run an update and you should be all set.

    --------------------
    SilverStripe tips, tutorials, screencasts and more: http://www.leftandmain.com

  • trumi
    Avatar
    Community Member
    14 Posts

    Re: uploadify :: problem:: can't create directory Link to this post

    where can i found last release or how to update i am not an expert?

  • trumi
    Avatar
    Community Member
    14 Posts

    Re: uploadify :: problem:: can't create directory Link to this post

    ok UncleCheese creating of directories are fixed.
    but i have still problem with importing images , images when uploaded are not shown attach files box.
    problem with showing when i select image from existing , image is not shown correctly , look at attachment.

    Attached Files
  • UncleCheese
    Avatar
    4085 Posts

    Re: uploadify :: problem:: can't create directory Link to this post

    Right. If you want thumbnails, you need to cast your file relation as Image, not File.

    --------------------
    SilverStripe tips, tutorials, screencasts and more: http://www.leftandmain.com

    2479 Views
Page: 1 2
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.