7913 Posts in 1355 Topics by 930 members
DataObjectManager Module
SilverStripe Forums » DataObjectManager Module » [SOLVED] Uploadify refresh problem
Discuss the DataObjectManager module, and the related ImageGallery module.
Moderators: martimiz, UncleCheese, Howard, Sean, Ryan M., biapar, Willr, Ingo, swaiba, simon_w
|
Page:
1
|
Go to End | |
| Author | Topic: | 1277 Views |
-
[SOLVED] Uploadify refresh problem

20 March 2011 at 5:29am Last edited: 20 March 2011 6:13am
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
-
Re: [SOLVED] Uploadify refresh problem

22 March 2011 at 12:32am
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...
-
Re: [SOLVED] Uploadify refresh problem

22 March 2011 at 12:59am Last edited: 22 March 2011 12:59am
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
| 1277 Views | ||
|
Page:
1
|
Go to Top |

