Vanilla open source was terminated 1 January 2025 by Higher Logic. See this announcement for more information.

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:
www.mysite.com/forum

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 2.0.17.8
FileUpload : Version 1.4.0
Tagged:

Comments

Sign In or Register to comment.