Author Topic: 1.5.3 Opera File Upload  (Read 3342 times)

init

  • Newbie
  • *
  • Posts: 4
    • View Profile
1.5.3 Opera File Upload
« on: September 15, 2009, 10:09:02 am »
Uploading a File with Opera isnt working =(
thats really bad.. hell i everytime have to start FF ..

im usting the latest opera version 10

thx

achillix

  • Newbie
  • *
  • Posts: 1
    • View Profile
    • Email
Re: 1.5.3 Opera File Upload
« Reply #1 on: September 16, 2009, 05:50:01 am »
Hi Folks

i have the same Problem with uploading file, but with Firefox 3.5.1

I can not give it a name and i have no possibility to add a file - look the screenshot in my attachement

Any Idea.

Thanks!!!

bryce

  • Newbie
  • *
  • Posts: 1
    • View Profile
Re: 1.5.3 Opera File Upload
« Reply #2 on: October 12, 2009, 05:20:23 pm »
So glad you guys noted this problem.  Everything else was working fine in Opera, so I didn't even think the browser would be an issue when I ran into the file upload problem.  I'm running Opera 10 on Windows XP and could not upload files.  Switched to FireFox and everything was fine.  

Here's the error code from the log.php file:

Session "default" started at 2009-10-12T19:38:25+0000
#1 ERROR: Error: copy() ["<a href='function.copy'>function.copy</a>]:
Filename cannot be empty in 'D:\web\apache\htdocs\opengoo\application\controllers\FilesController.class.php' on line 432 (error code: 2)

I've got this error code in the logs for every time I tried to upload the file in Opera, and the filename line was never empty on the screen.

BE

« Last Edit: October 12, 2009, 05:31:32 pm by bryce »

ignacio

  • Hero Member
  • *****
  • Posts: 1703
    • View Profile
Re: 1.5.3 Opera File Upload
« Reply #3 on: October 13, 2009, 04:43:42 pm »
Hi guys,

To fix it edit file 'public/assets/javascript/og/og.js', change lines 551-554 from:

Code: [Select]
if(Ext.isIE){
    frame.src = Ext.SSL_SECURE_URL;
}
document.body.appendChild(frame);

to:

Code: [Select]
document.body.appendChild(frame);
frame.src = Ext.SSL_SECURE_URL;

If you are using minified javascript you'll have to minify it again after the changes.

Please confirm if this solves the issue.

Thanks.

wizzrobe

  • Newbie
  • *
  • Posts: 4
    • View Profile
    • Email
Re: 1.5.3 Opera File Upload
« Reply #4 on: November 13, 2009, 07:18:07 pm »
Thanks for posting this fix for opera users. I use opera 10.01 and encountered the same problem on my opengoo (1.5.3) install.

Your suggestion to change og.js above worked very wll. Are there any potential issues with this fix? Or is it ok to leave it in place?

Thanks
-Andrew

ignacio

  • Hero Member
  • *****
  • Posts: 1703
    • View Profile
Re: 1.5.3 Opera File Upload
« Reply #5 on: November 16, 2009, 08:55:09 am »
It is OK to leave it in place.

wizzrobe

  • Newbie
  • *
  • Posts: 4
    • View Profile
    • Email
Re: 1.5.3 Opera File Upload
« Reply #6 on: November 19, 2009, 12:51:25 pm »
Great, Thanks!