Register Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools
  #1  
Old 03 Apr 2011, 22:44
thenetbox thenetbox is offline
 
Join Date: Mar 2002
Arrow Has anyone fixed the swf uploader attachment category bug?

There is a bug in the vb 4 and vb4.1 uploader where it does not preserve the selected category.

For example, if you create categories in the attachment manager, then you click one of the categories, then click on Add Files, choose a file, click upload.... and instead of the file being uploaded into the selected category, it puts it in categoryid 0, which is Home.

However, if you use the basic uploader, then the category gets preserved.

This bug was reported here a year ago:
http://tracker.vbulletin.com/browse/...3Aall-tabpanel

I am trying to fix this for my board but I'm wondering if someone else has figured out a work around?

As I wrote in the bug report:

I looked at the code in vbulletin_yuiupload.js, vbulletin_asset.js and assetmanage.js

In vbulletin_asset.js, this is where the postvars appears to be given information about categoryid:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

But in vbulletin_yuiupload.js, vB_YUI_Upload.prototype.upload function, when it calls


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

the this.postvars container does not have a categoryid attribute. (I checked in firebug and chrome)

and same in assetmanager.js:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

When uploadAll is called, B, does not have categoryid in postvars.

However, if you try to add a category just for testing in vB_YUI_Upload.prototype.upload like:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

the sql query starting with

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

never gets called but I don't know where and why.

Has anyone made any progress on this and would like to share some notes?

Thanks
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


New To Site? Need Help?

All times are GMT. The time now is 00:46.

Layout Options | Width: Wide Color: