Jump to:

7938 Posts in 1541 Topics by 945 members

DataObjectManager Module

SilverStripe Forums » DataObjectManager Module » Uploadify: "HTTP Error"

Discuss the DataObjectManager module, and the related ImageGallery module.

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

Page: 1 2
Go to End
Author Topic: 11473 Views
  • UncleCheese
    Avatar
    4085 Posts

    Re: Uploadify: "HTTP Error" Link to this post

    I've just checked in a change that should (hopefully) resolve these 302 errors. Add the following line to your _config.php:

    UploadifyField::disable_authentication();

    And Uploadify will use a public-facing upload controller, which will not throw a 302 when a user is not authenticated, as is the case in CMSMain.

  • JonoM
    Avatar
    Community Member
    103 Posts

    Re: Uploadify: "HTTP Error" Link to this post

    Hi UC,

    My webhost made some changes regarding security and now I'm having similar problems to everyone else here - getting a 302 response from POST and being kicked out of the CMS with various versions of Dom/Uploadify/SwfUpload across different sites.

    I downloaded Charles and also the latest DOM and Uploadify trunk to try the UploadifyField::disable_authentication(); option but when I watch for the POST from Flash it doesn't happen on my local or live server - When I choose a file to upload the progress bar freezes at 0% and the process stops (with or without UploadifyField::disable_authentication();). If I use an older version of the modules I can upload fine on my local server.

  • JonoM
    Avatar
    Community Member
    103 Posts

    Re: Uploadify: "HTTP Error" Link to this post

    Hi UC,

    Update - It's only the uploading of multiple files that isn't working for me on my local copy. In my case I can upload on my local server with an ImageUploadField or standard DataObjectManager but the ImageDataObjectManager shows a progress bar that doesn't move whether you try to upload one or several files.

    Unfortunately on my live server, with UploadifyField::disable_authentication(); in place I'm still getting kicked out of the CMS even if I use an ImageUploadField. But at least the image is getting uploaded and added to the database correctly as it's available in Files & Images when I log back in. The progress bar in the ImageUploadField shows it uploading all the way, I get a completed message which then fades away but it doesn't get as far as linking the image to the page and showing a thumbnail of it in the field.

    Thanks for all of your hard work on these modules! And sorry to pester you for help, but I don't know what else to do!

    Cheers

  • lerni
    Avatar
    Community Member
    80 Posts

    Re: Uploadify: "HTTP Error" Link to this post

    hi there

    okeh its a old, old post but I had the terminated session problem on one server and now solved with the following:

    in .htaccess
    php_flag suhosin.session.encrypt Off

    and in php.ini
    php_admin_value suhosin.session.encrypt Off

    lukas

  • pinkp
    Avatar
    Community Member
    168 Posts

    Re: Uploadify: "HTTP Error" Link to this post

    After downloading the latest version of Uploadify from
    http://www.leftandmain.com/silverstripe-modules/2010/08/26/uploadify/

    and following UC instructions to add:
    UploadifyField::disable_authentication();
    to _config.php

    it worked for me.

  • ShaQ
    Avatar
    Community Member
    1 Post

    Re: Uploadify: "HTTP Error" Link to this post

    Hi there.
    I use the latest versions of Silverstripe, DOM and Uploadify.

    Charles returned me:
    "<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
    > <html><head>
    > <title>302 Found</title>
    > </head><body>
    > <h1>Found</h1>
    > <p>The document has moved <a
    > href="http://errors.hosting.ru/insecure.html">here</a>.</p>
    > </body></html>"

    session.use_only_cookies checked to off

    I've tried to add UploadifyField::disable_authentication();

    But I still had the same problem.

    Hosting support proposed me to switch off security module. I've added SecFilterEngine Off in my .htaccess. And now it works. Can I have security problems now and maybe there is another way to solve uploading problem?

    11473 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.