Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • MorettoCarlo 6 posts 27 karma points
    Mar 11, 2013 @ 16:01
    MorettoCarlo
    0

    Not upload image

    When I create a new image i'm not able to upload the image. There are no errors, but no image was created...

    Umbraco v6.0.2 

  • Jeroen Breuer 4909 posts 12266 karma points MVP 5x admin c-trib
    Mar 11, 2013 @ 16:07
    Jeroen Breuer
    0

    What version of DAMP are you using? Only DAMP 2.5 works on v6.

    Jeroen

  • MorettoCarlo 6 posts 27 karma points
    Mar 11, 2013 @ 16:10
    MorettoCarlo
    0

    I'm using DAMP 2.5... All works fine, but when i upload something i'll receive no error, but the image is not uploaded...

  • Jeroen Breuer 4909 posts 12266 karma points MVP 5x admin c-trib
    Mar 11, 2013 @ 16:12
    Jeroen Breuer
    0

    Hmm I also had that error with DAMP 2.0, but it should be fixed in 2.5. I'll have a look at it soon.

    Jeroen

  • MorettoCarlo 6 posts 27 karma points
    Mar 11, 2013 @ 16:31
    MorettoCarlo
    0

    I'm debugging the project. In umbraco 6 the _media.genericProperties.Value is empty. But in umbraco 4.11 this is filled.

  • Jeroen Breuer 4909 posts 12266 karma points MVP 5x admin c-trib
    Mar 11, 2013 @ 16:37
    Jeroen Breuer
    0

    Thanks for debugging the code. Maybe these issues can give you more information:

    http://issues.umbraco.org/issue/U4-1371

    http://issues.umbraco.org/issue/U4-1368

    Jeroen

  • Nicola 3 posts 23 karma points
    Mar 12, 2013 @ 16:11
    Nicola
    0

    I noticed that the plugin doesn't work properly with Umbraco 6.0.2 : the "Edit media item" dialog doesn't save any property.

    You can only create the media item, but you can't edit it in the dialog.

  • Jeroen Breuer 4909 posts 12266 karma points MVP 5x admin c-trib
    Mar 13, 2013 @ 09:09
  • Nicola 3 posts 23 karma points
    Mar 13, 2013 @ 09:56
    Nicola
    0

    Analyzing your code and umbraco 6.0.2 source code, I figured out what the problem is:

    In umbraco source in editMedia.aspx.cs this snippet is used to save the media:

                //The value of the properties has been set on IData through IDataEditor in the ContentControl
                //so we need to 'retrieve' that value and set it on the property of the new IContent object.
                //NOTE This is a workaround for the legacy approach to saving values through the DataType instead of the Property
                //- (The DataType shouldn't be responsible for saving the value - especically directly to the db).
                foreach (var item in tmp.DataTypes)
                {
                    _media.getProperty(item.Key).Value = item.Value.Data.Value;
                }

    In DAMP editDAMP.aspx.cs this workaround is not implemented so the media doesn't save its properties.

    I tried to add this foreach in DAMP but DataTypes is an internal property of the class ContentControl. Perhaps DAMP should use the new set of classes and services provided by umbraco 6.

  • Jeroen Breuer 4909 posts 12266 karma points MVP 5x admin c-trib
    Mar 13, 2013 @ 10:32
    Jeroen Breuer
    0

    I added an issue for it so hopefully it can become public: http://issues.umbraco.org/issue/U4-1910

    Jeroen

  • Jeroen Breuer 4909 posts 12266 karma points MVP 5x admin c-trib
    Mar 16, 2013 @ 14:45
    Jeroen Breuer
    0

    The editMedia issue should be fixed in the latest change set: http://damp.codeplex.com/SourceControl/list/changesets

    Uploading works in v 6.0.2 so I can't recreate that issue.

    Jeroen

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies