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.

DataObjectManager Module

Discuss the DataObjectManager module, and the related ImageGallery module.

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

'HTTP Error' Uploading Documents using FileDataObjectManager


Reply

46 Posts   7088 Views

Avatar
UncleCheese

9 December 2010 at 10:22am 4085 Posts

Change uploadify/_config.php to this:

<?php
UploadifyField::show_debug();
if(isset($_POST['PHPSESSID'])) {
   Session::start($_POST['PHPSESSID']);
die(session_id());
}

Upload a file, and post the response you get in the dialog box.

--------------------
SilverStripe tips, tutorials, screencasts and more: http://www.leftandmain.com

Avatar
OzziNL

9 December 2010 at 10:39am Community Member, 37 Posts

The response is:

script: %2Fadmin%2Fassets%2FEditForm%2Ffield%2FFiles%2FUploadifyForm%2Ffield%2FUploadedFiles%2Fupload%3Fctf%5BFiles%5D%5Bstart%5D%3D0%26ctf%5BFiles%5D%5Bper_page%5D%3D10%26ctf%5BFiles%5D%5Bshowall%5D%3D0%26ctf%5BFiles%5D%5Bsort%5D%3DSortOrder%26ctf%5BFiles%5D%5Bsort_dir%5D%3D%26ctf%5BFiles%5D%5Bsearch%5D%3D%26ctf%5BFiles%5D%5Bfilter%5D%3D%26ctf%5BFiles%5D%5Bview%5D%3D
refreshlink: /admin/assets/EditForm/field/Files/UploadifyForm/field/UploadedFiles/refresh?ctf[Files][start]=0&ctf[Files][per_page]=10&ctf[Files][showall]=0&ctf[Files][sort]=SortOrder&ctf[Files][sort_dir]=&ctf[Files][search]=&ctf[Files][filter]=&ctf[Files][view]=
uploader: /uploadify/javascript/uploadify.swf
scriptAccess: sameDomain
queueSizeLimit: 40
auto: 1
fileExt: *.*
fileDesc:
cancelImg: /uploadify/images/cancel.png
image_class: Image
file_class: File
buttonText: Upload files
queueID: UploadifyFieldQueue_UploadedFiles
wmode: transparent
hideButton: 1
upload_on_submit:
sortable:
sizeLimit: 2097152
multi: 1
scriptData:

Avatar
UncleCheese

9 December 2010 at 11:31am 4085 Posts

No, I mean the response in the dialog box after you upload.

Avatar
OzziNL

9 December 2010 at 11:48am Community Member, 37 Posts

Sorry,
it is: u2j2vrpl5pk332o9p0p7qkn8m4

I also added:

uploadify_init.js:
line:91:

onError : function(event, queueID, fileObj, errorObj) { alert(errorObj.type + ' : ' + errorObj.info ); }

And that gives dialog: ERROR : 302

Avatar
UncleCheese

9 December 2010 at 5:07pm 4085 Posts

So you're getting a valid session id. Weird. Are you logged in as a full admin?

Avatar
OzziNL

9 December 2010 at 9:47pm Community Member, 37 Posts

Yes I am.

And I think this problem will rise more and more. Yesterday I tried to work on my own site and guess what: same problem !
It was never there so it has something to do with a recent update on the Flash plugin.

Googling on 302 and SWFObject and/or UPloadify results in more and more of these problems :(

Cheers,
Oscar

Avatar
VRoxane

9 December 2010 at 9:51pm Community Member, 42 Posts

I'm freakin' out too : every website I made for my clients are SS websites... really hope we'll find what the problem is and how to fix it !

Avatar
UncleCheese

10 December 2010 at 3:54am 4085 Posts

If you'd like hands-on support, you can contact me through my website, leftandmain.com.

--------------------
SilverStripe tips, tutorials, screencasts and more: http://www.leftandmain.com