Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

General Questions /

General questions about getting started with SilverStripe that don't fit in any of the categories above.

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

SOLVED uploadify strange behavior with small thumb pics


Go to End


7 Posts   2387 Views

Avatar
danzzz

Community Member, 175 Posts

9 November 2011 at 8:58am

hi,

I upload or import some pics with uploadify.
The small preview pics are there, after saving the page they are gone,
please see attached file.

Any idea?

thx

Attached Files
Avatar
Scott Farmer

Community Member, 49 Posts

9 November 2011 at 10:23am

Have you turned on all error reporting and checked folder permissions? Firebug is also a good idea to see javascript errors.

Cheers
Scott

Avatar
danzzz

Community Member, 175 Posts

10 November 2011 at 2:32am

Edited: 10/11/2011 2:33am

I double checked for JS errors, also with firebug, there are no ... I'm also in dev mode with error output, no errors.
It works as it should, only the small pics are not there.

Avatar
danzzz

Community Member, 175 Posts

10 November 2011 at 5:09am

update:

If I change filenames bevor upload to lowercase, the result is see attached image.

Attached Files
Avatar
Scott Farmer

Community Member, 49 Posts

10 November 2011 at 8:52am

How big are the file sizes?

Seem to recall something similar with large files sizes.

Cheers
Scott

Avatar
danzzz

Community Member, 175 Posts

10 November 2011 at 11:04pm

file sizes are between 100KB and 300KB

Avatar
danzzz

Community Member, 175 Posts

11 November 2011 at 4:54am

I solved that thing :-)

Before:


class MyImage extends File {
 
    static $has_one = array (
	'Produkt' => 'Produkt'
    );
 
}

After:

class MyImage extends Image {
 
    static $has_one = array (
	'Produkt' => 'Produkt'
    );
 
}

I used wrong class (File) instead of Image.