From: E.Stefanakis <es...@hu...> - 2008-03-06 21:40:59
|
Dear all I have tried all these alternatives without success... ... still get the same message. Emmanuel. ----- Original Message ----- From: "Jeroen Ticheler" <Jer...@fa...> To: "E.Stefanakis" <es...@hu...> Cc: "FBachraty" <Fab...@av...>; <geo...@li...> Sent: Wednesday, March 05, 2008 11:30 AM Subject: Re: [SPAM] Re: [GeoNetwork-users] Unable to upload a file in Online resource section > Hi Emmanuel, > Unless you have an old version, this fix is already part of version > 2.2RC0 and RC1 (search the metadata-edit.xsl file for that string to be > sure). Otherwise it should be added in the JavaScript function > doFileUploadAction as: > > document.mainForm.action = action; > document.mainForm.enctype="multipart/form-data"; > goSubmit('mainForm'); > > (Only the middle line obviously). > If it doesn't work with the line added, please try Fabien's solution and > let us know if that worked! > Ciao, > Jeroen > > On Mar 5, 2008, at 10:23 AM, E.Stefanakis wrote: > >> Could you please guide me where to put this >> >>> enctype="multipart/form-data" >> >> Thanks! >> >> Emmanuel. >> >> ----- Original Message ----- >> From: "FBachraty" <Fab...@av...> >> To: <geo...@li...> >> Sent: Wednesday, March 05, 2008 10:40 AM >> Subject: Re: [GeoNetwork-users] Unable to upload a file in Online >> resource >> section >> >> >>> >>> Maybe you are true. >>> >>> But Tomcat create a user to work and acces your disk. >>> This user must have the read and write authorisation not your user;) >>> >>> The user is named Tomcat5 maybe Tomcat55 for the realease 5.5 >>> I am not sure have a look :) >>> >>> Have can also look to the tomcat policy file. >>> Try to add something like this >>> grant codeBase "file:/usr/local/Geonetwork/-" >>> { >>> permission java.security.AllPermission; >>> }; >>> >>> Either have a look to this interesting post : >>> >>> http://www.nabble.com/File-upload-error-to13102530s18419.html#a13102530 >>> >>> ( >>> edit the metadata-edit.xsl >>> and add this attribute to the form: >>> >>> enctype="multipart/form-data" >>> ) >>> >>> best regards >>> Fabien Bachraty >>> >>> >>> >>> >>> E.Stefanakis-2 wrote: >>>> >>>> Dear Fabien >>>> >>>> In this directory I can find the thumbnails - so it seems there is >>>> authorized access... >>>> >>>> Thanks! >>>> >>>> Emmanuel. >>>> >>> >>> -- >>> View this message in context: >>> http://www.nabble.com/Unable-to-upload-a-file-in-Online-resource-section-tp15837490s18419p15845459.html >>> Sent from the geonetwork-users mailing list archive at Nabble.com. >>> >>> >>> ------------------------------------------------------------------------- >>> This SF.net email is sponsored by: Microsoft >>> Defy all challenges. Microsoft(R) Visual Studio 2008. >>> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ >>> _______________________________________________ >>> GeoNetwork-users mailing list >>> Geo...@li... >>> https://lists.sourceforge.net/lists/listinfo/geonetwork-users >>> GeoNetwork OpenSource is maintained at >>> http://sourceforge.net/projects/geonetwork >>> >> >> >> >> ------------------------------------------------------------------------- >> This SF.net email is sponsored by: Microsoft >> Defy all challenges. Microsoft(R) Visual Studio 2008. >> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ >> _______________________________________________ >> GeoNetwork-users mailing list >> Geo...@li... >> https://lists.sourceforge.net/lists/listinfo/geonetwork-users >> GeoNetwork OpenSource is maintained at >> http://sourceforge.net/projects/geonetwork > > |