Gossamer Forum
Home : Products : DBMan SQL : Discussion :

bug - file upload with modify record

Quote Reply
bug - file upload with modify record
I found what appears to be a bug. When adding a record that has a file field, it has no problem uploading the file. But when you try to add a file from the modify_form, it ends up using the local path instead of the server path. For example, I just modified a record, and when I view it the name of the uploaded file appears as:

C:\Documents and Settings\PATH\TO\LOCAL\DIRECTORY\pic.jpg

When you try to view it, you get the following error:

A fatal error has occured:
Dbsql::Home (21342): Error Viewing File at /PATH/TO/admin/GT/Plugins.pm line 151.


Please enable debugging in setup for more details.

Dbsql::Home (21342): Error Viewing File at /PATH/TO/admin/GT/Plugins.pm line 151.

Fractured Atlas :: Liberate the Artist
Services: Healthcare, Fiscal Sponsorship, Marketing, Education, The Emerging Artists Fund
Quote Reply
Re: [hennagaijin] bug - file upload with modify record In reply to
Hello

I´ve found this too, Jean fixed it for me, maybe a post in forum to explain how to fix that should be very usefull

Fábio
Quote Reply
Re: [assombracao] bug - file upload with modify record In reply to
That would be useful. Maybe even a post in the bug reports/fixes forum??

In the meantime, any chance you could try to post what Jean did?

Fractured Atlas :: Liberate the Artist
Services: Healthcare, Fiscal Sponsorship, Marketing, Education, The Emerging Artists Fund
Quote Reply
Re: [hennagaijin] bug - file upload with modify record In reply to
I don´t know what he did,

I just passed my login/pass to him for discover the problem and he fixed that

Hi Fabio,

It's definitely a bug in one of our library modules and will be fixed in
next release. I've updated the module GT/SQL/File.pm on your server and it
should work properly now.

Cheers,
Jean
Gossamer Threads.com


I will post my File.pm here for you to try to change yours

Fábio
Quote Reply
Re: [assombracao] bug - file upload with modify record In reply to
That fixed it - thanks!

Fractured Atlas :: Liberate the Artist
Services: Healthcare, Fiscal Sponsorship, Marketing, Education, The Emerging Artists Fund
Quote Reply
Re: [assombracao] bug - file upload with modify record In reply to
Hmm. It seems this File.pm fix corrects the problem under most circumstances, however when you try to modify multiple records (each with a "File" field), the same old error occurs again.

Fractured Atlas :: Liberate the Artist
Services: Healthcare, Fiscal Sponsorship, Marketing, Education, The Emerging Artists Fund
Quote Reply
Re: [hennagaijin] bug - file upload with modify record In reply to
I had the same problem and was able to fix it by replacing File.pm (the version in /admin/GT/SQL, not the version in /admin/GT/Session.

Slight moan : I bought the program in early 2003. It would be good if bugs like this could be fixed asap in the code available for download. Smile
Tim Ault
Oxford UK
Quote Reply
Re: [timbo] bug - file upload with modify record In reply to
I too have this problem. What exactly did you replace the file with? I'm not too clear on what was done. :) Thank you!

Last edited by:

ArtistikDD: Sep 22, 2003, 12:52 PM
Quote Reply
Re: [ArtistikDD] bug - file upload with modify record In reply to
Download the file File.pm from above - it's after the 4th message in this thread.

Copy it to your web server to replace File.pm in /where you installed dbman sql/admin/GT/SQL.
Tim Ault
Oxford UK
Quote Reply
Re: [hennagaijin] bug - file upload with modify record In reply to
Please excuse my retardation lol...I didn't even notice the file attachment. Thank you!
Quote Reply
Re: [hennagaijin] bug - file upload with modify record In reply to
That file, for some odd reason, doesn't fix anything for me at all. :(
Quote Reply
Re: [ArtistikDD] bug - file upload with modify record In reply to
If you can send me the user and password to access the admin panel via email, I'll have a look.

TheStone.

B.
Quote Reply
Re: [TheStone] bug - file upload with modify record In reply to
Thank you, but I managed to get it working. I think the file wasn't FTPing properly (I was having all sorts of problems). Thanks everyone!
Quote Reply
Re: [ArtistikDD] bug - file upload with modify record In reply to
FrownMe too the same horrible problem making weeks and two months trying to solve, PLease Gossamer Staff Take a note of this BUG

AND PUT THE DOWNLOAD FIXED WITH THE BUG SOLVED! SO OTHER CANNOT BE GOING AROUND THINKING WHAT IS THAT ABOUT

THANX FOR HEARING!

SmileTHANX ALL THAT HELP TO SOLVE IT!
KevinW ANDRE
webmaster@cyberbrickell.com