Jump to:

7939 Posts in 1472 Topics by 944 members

DataObjectManager Module

SilverStripe Forums » DataObjectManager Module » [SOLVED] Uploadify refresh problem

Discuss the DataObjectManager module, and the related ImageGallery module.

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

Page: 1
Go to End
Author Topic: 1598 Views
  • JohnnyP
    Avatar
    Community Member
    3 Posts

    [SOLVED] Uploadify refresh problem Link to this post

    Hey there!

    Maybe someone can help me...
    I've just started using MultiForm and added a simple Uploadify - ImageUploadField. Here's the code, actually quite simple:

    <?php

    class CreateMultiFormStep_Images extends MultiFormStep {

       public static $next_steps = 'CreateMultiFormStep_Main';

       function getFields() {
       
          $fields = new FieldSet(new ImageUploadField('SourceImage', 'Upload source image'));
          return $fields;
       
       }

    Now when I visit the page I am able to upload an image (the image is moved to the uploads folder) and there's a new file-entry in the database, but it seems like the upload's stuck on 100% - there's no thumbnail showing and the "Next"-button of the MultiFormStep is disabled!
    Same problem occured using uploadify in a "normal" frontend form (no multiform-module). After uploading the file, the "submit"-button is disabled.

    Uploadify is working perfectly fine in the backend.

    I just can't figure out what's wrong, and it's driving me crazy, especially because I'm not getting any error messages at all.

    Thanks for your help in advance,

    Johnny

  • JohnnyP
    Avatar
    Community Member
    3 Posts

    Re: [SOLVED] Uploadify refresh problem Link to this post

    I checked the whole thing through with Charles and Firebug. The upload's completed, the server is responding with correct FileID and the JSON string containing the html for the image preview (path is also correct) and the success-message.

    I checked uploadify_init.js and it seems like it's stuck in the success function, because "Working1" is logged, "Working2" is not:

    success: function(data) {
    console.log('Working1');
    $preview.html(data.html);
    console.log('Working2');}

    Still don't know what's wrong...

  • JohnnyP
    Avatar
    Community Member
    3 Posts

    Re: [SOLVED] Uploadify refresh problem Link to this post

    Problem solved oO

    I used the tutorial theme for my site. Changed it to blackcandy. Everything's working fine now.

    Sometimes you can't see the wood for the trees...
    Thanks anyway

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