FW: [opencms-dev] Regarding uploading the PDF file

Arash Kaffamanesh arash.kaffamanesh at pomegranate.de
Fri Oct 7 14:54:25 CEST 2005


http://www.pomegranate.de:9000/cms/forum/viewthread?thread=17
Solution for uploading files > 16MB to OpenCms with MySQL 4.x
installations:

Should help,

Regards,
Arash

-----Original Message-----
From: mohd yousufuddin [mailto:mail_yousuf at india.com] 
Sent: Freitag, 7. Oktober 2005 13:22
To: Arash Kaffamanesh
Subject: RE: FW: [opencms-dev] Regarding uploading the PDF file


Hi,
Thanx a lot....Now i am getting one more error while uploading the
pdf...when i upload a file of 17MB or more, it is showing a message box
saying "Error null" when i click the details button it is showing
java.lang.OutOfMemoryError....If it is a java program we can use -Xms
and -Xmx .....but for opencms i dont know where to configure...did you
come across this type of error any time....what is the remedy for
this...please let me know....

Eagerly waiting for your response.

Thanx in advance.

regards,
yousuf.

----- Original Message -----
From: "Arash Kaffamanesh" <arash.kaffamanesh at pomegranate.de>
To: "'mohd yousufuddin'" <mail_yousuf at india.com>
Subject: RE: FW: [opencms-dev] Regarding uploading the PDF file
Date: Fri, 7 Oct 2005 13:02:42 +0200

> 
> Hi,
> 
> You are welcome.
> 
> > I have a question....let us think i have a folder called pdf's....i
> want to provide a search facility for that...is there > any mechanism 
> in opencms by which i can customize this ..
> 
> Yes, you shall define in opencms-search.xml something like this:
> 
> <indexsource>
> 				<name>pdfs</name>
> 				<indexer
> class="org.opencms.search.CmsVfsIndexer" />
> 				<resources>
> 	
> <resource>/sites/yoursite/pdfs/</resource>
> 				</resources>
> and then:
> 
> <index>
> 				<name>Online</name>
> 				<rebuild>auto</rebuild>
> 				<project>Online</project>
> 				<locale>en</locale>			
> 				<sources>
> 					<source>pdfs</source>
> 				</sources>		
> </index>
> 
> Now you shall set the "index" property for your search-pdfs.html and 
> search-results.html to "pdfs". But I think all of these settings could

> be performed in the current version through the Admin Workplace.
> 
> > one more question is when i login, in the Explorer view i want to 
> > see
> some Welcome message rather than folders.....Is  there any way to 
> achieve this....
> 
> Yes, in 6.0 it is a setting under Administration --> Workplace Tools 
> --> Set Login Message :-)
> 
> Hth,
> Regards,
> Arash
> 
> P.S:
> 
> Please send these mails also to the list, thanx
> 
> -----Original Message-----
> From: mohd yousufuddin [mailto:mail_yousuf at india.com]
> Sent: Freitag, 7. Oktober 2005 08:09
> To: Arash Kaffamanesh
> Subject: RE: FW: [opencms-dev] Regarding uploading the PDF file
> 
> 
> Hi,
> 
> Thanx a lot,
> 
> My problem got solved...i was not restarting the server......Now i am 
> able to upload the files..
> 
> 
> Thanx once again...
> 
> I have a question....let us think i have a folder called pdf's....i 
> want to provide a search facility for that...is there any mechanism in

> opencms by which i can customize this ..
> 
> one more question is when i login, in the Explorer view i want to see 
> some Welcome message rather than folders.....Is there any way to 
> achieve this....
> 
> Please let me know if you know.....
> 
> regards,
> yousuf.
> 
> 
> 
> 
> ----- Original Message -----
> From: "Arash Kaffamanesh" <arash.kaffamanesh at pomegranate.de>
> To: "'mohd yousufuddin'" <mail_yousuf at india.com>
> Subject: RE: FW: [opencms-dev] Regarding uploading the PDF file
> Date: Thu, 6 Oct 2005 18:29:24 +0200
> 
> >
> > Hi,
> >
> > On my Installation on Windows 2003 server my.ini is under
> > C:\Windows and it looks like this, you shall restart your mysql 
> > server after changing this settings, you can also change this 
> > settings via WinMySQL
> 
> > Admin.
> >
> > [mysqld]
> > basedir=C:/mysql
> > datadir=C:/mysql/data
> > ...
> >
> > set-variable = max_allowed_packet=64M
> >
> > On Linux under /etc/my.cnf
> >
> > [mysqld]
> >
> > max_allowed_packet=64M
> >
> > Hth,
> > Kind Regards,
> > Arash
> >
> > -----Original Message-----
> > From: mohd yousufuddin [mailto:mail_yousuf at india.com]
> > Sent: Donnerstag, 6. Oktober 2005 17:46
> > To: Arash Kaffamanesh
> > Subject: Re: FW: [opencms-dev] Regarding uploading the PDF file
> >
> >
> >
> > Hi,
> >
> > Thanx.... i unchecked the check box....but now the error is packet 
> > for
> 
> > query too large...can you please tell me where i can set
> > max_allowed_packet size. I didnt find that in my.ini...i changed 
> > that variable in my-huge.ini, my-small.ini, my-large.ini, 
> > my-medium.ini... but still getting the same error...
> >
> > regards,
> > yousuf.
> >
> >
> >
> > ----- Original Message -----
> > From: "Arash Kaffamanesh" <arash.kaffamanesh at pomegranate.de>
> > To: "'mohd yousufuddin'" <mail_yousuf at india.com>
> > Subject: FW: [opencms-dev] Regarding uploading the PDF file
> > Date: Thu, 6 Oct 2005 15:21:58 +0200
> >
> > >
> > > FYI
> > >
> > > -----Original Message-----
> > > From: Arash Kaffamanesh [mailto:arash.kaffamanesh at pomegranate.de]
> > > Sent: Donnerstag, 6. Oktober 2005 15:20
> > > To: 'The OpenCms mailing list'
> > > Subject: RE: [opencms-dev] Regarding uploading the PDF file
> > >
> > >
> > > Hi,
> > >
> > > If you are using the "Use Upload-Applet" setting in your 
> > > preferences, disable it and try with legacy upload.
> > >
> > > If your pdf- filesize is > max_allowed_packet size setting of your

> > > MySql Installation, then try to increase this setting, >
> > unless follow this thread on our site for files > 16 MB:
> > >
> > > http://www.pomegranate.de:9000/cms/forum/viewthread?thread=17
> > >
> > > Hth,
> > > Arash
> > >
> > > -----Original Message-----
> > > From: opencms-dev-bounces at opencms.org 
> > > [mailto:opencms-dev-bounces at opencms.org] On Behalf Of mohd > 
> > > yousufuddin
> > > Sent: Donnerstag, 6. Oktober 2005 13:31
> > > To: opencms-dev at opencms.org
> > > Cc: mail_yousuf at india.com
> > > Subject: [opencms-dev] Regarding uploading the PDF file
> > >
> > >
> > > Hi,
> > >
> > > when i click upload button in opencms Explorer view as a 
> > > administrator, it is opening the window, when i select a pdf to 
> > > upload, i am getting the message boxes saying
> > >    1.Adding pdf
> > >    2. Uploading data
> > >
> > > then the message box is going off. But i am unable to see the pdf 
> > > file. I am not getting any errors either on Explorer or on >
> > Tomcat. I didnt find any errors in opencms.log file also. Can >
> > anybody help me in
> >
> > > this regard. Any help is greatly appreciated.
> > >
> > > regards,
> > > yousuf.
> > >
> > > --
> > > India.com free e-mail - www.india.com.
> > > Check out our value-added Premium features, such as an extra 20MB 
> > > for mail storage, POP3, e-mail forwarding, and ads-free mailboxes!
> > >
> > >
> > > _______________________________________________
> > > This mail is send to you from the opencms-dev mailing list To 
> > > change
> 
> > > your list options, or to unsubscribe from the list, please
> > visit > http://mail.opencms.org/mailman/listinfo/opencms-dev
> >
> >
> > --
> > India.com free e-mail - www.india.com.
> > Check out our value-added Premium features, such as an extra 20MB
> > for mail storage, POP3, e-mail forwarding, and ads-free mailboxes!
> 
> 
> --
> India.com free e-mail - www.india.com.
> Check out our value-added Premium features, such as an extra 20MB for 
> mail storage, POP3, e-mail forwarding, and ads-free mailboxes!


-- 
India.com free e-mail - www.india.com. 
Check out our value-added Premium features, such as an extra 20MB for
mail storage, POP3, e-mail forwarding, and ads-free mailboxes!




More information about the opencms-dev mailing list