Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.

Fix for FileUpload Javascript error (0x80070057)

edited March 2011 in Vanilla 2.0 - 2.8
I am not sure if this is an issue for everyone, but I was having javascript issues with the FileUpload plugin. After several hours of debugging I managed to track down what was causing it and how to fix.

In fileupload.js, there is a call to gdn.url() which i guess wraps the upload form action string in the VF location. This was in fact returning an empty string. So what was happening was that the upload form action attribute was empty.

To fix, I had to hardcode my VF installation folder into fileupload.js like so:

Assuming the url to your forum is:

Line 222 : fileupload.js
'action': "/forum/"+Action.join('/'),

and on line 430:
var FinalURL = "/forum/"+Action.join('/')+'?randval='+Math.random();

This seemed to fix my upload problems. Hope it helps someone else.

VF : Version
FileUpload : Version 1.4.0


Sign In or Register to comment.