|
Image-transfer module
With this optional chat module, user can send an image in the chat lobby window or in the private chat window.
The code to activate upload-image function to 123flashchat, sample:
<image-transfer enableLobby="On" enablePrivate="On" uploadURL="" downloadURL="" maxUPLoadSize="50" imageHeight="200" imageWidth="200" allowGuest="On"></image-transfer>
Parameter |
Type |
Default value |
Description |
enableLobby |
string |
on |
Enable or disable transfer image (support file type: .jpg, .jpeg) in lobby chat window |
enablePrivate |
String |
on |
Enable or disable transfer image (support file type: .jpg, . jpeg) in private chat window |
uploadURL |
String |
|
Setting the URL that the file will be uploaded, you can use your own upload server (apache, tomcat, etc...) or use 123flashchat http server, if you use 123flashchat server, you must leave the uploadURL's value empty |
downloadURL |
String |
|
Setting the URL that the file will be downloaded, you can use your own upload server (apache, tomcat, etc...) or use 123flashchat http server, if you user 123flashchat server, you must leave the downloadURL's value empty |
maxUPLoadSize |
Number |
1024 |
Setting the max file can be uploaded to the server, the value must less than the value maxUPLoadSize in <123flashchat installed directory>/server/etc/fcserver.xml, if the value less than or equals to 0, this means the server will not accept any upload files. |
imageHeight |
Number |
200 |
The height of uploaded image that will be displayed in the lobby or private chat window |
imageWidth |
Number |
200 |
The width of uploaded image that will be displayed in the lobby or private chat window |
allowGuest |
String |
On |
Setting if the guest can upload file |
autoLoadImage |
String |
Off |
Enable or disable auto load an image and display it in the window, if disable this function, the user will get an alert message instead of load the image from server directly. |
updated at 2008-2-28 |