aspose file tools*
The moose likes JForum and the fly likes How to upload an attachment? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of JavaScript Promises Essentials this week in the JavaScript forum!
JavaRanch » Java Forums » Products » JForum
Bookmark "How to upload an attachment?" Watch "How to upload an attachment?" New topic
Author

How to upload an attachment?

Migrated From Jforum.net
Ranch Hand

Joined: Apr 22, 2012
Posts: 17424
I recently installed JForum. I logged in as administrator and created some dummy messages. I want to attach some files with my messages but I don't see any button to upload an attachment.
[originally posted on jforum.net by Anonymous]
Migrated From Jforum.net
Ranch Hand

Joined: Apr 22, 2012
Posts: 17424
Admin Panel -> Groups -> Permissions -> Attachments -> Enable Attachments.

Rafael
[originally posted on jforum.net by Rafael Steil]
Migrated From Jforum.net
Ranch Hand

Joined: Apr 22, 2012
Posts: 17424
Are you using MySQL 4.1+? if so, please replace the file "mysql.sql" by "mysql_41.sql".

Rafael
[originally posted on jforum.net by Rafael Steil]
Migrated From Jforum.net
Ranch Hand

Joined: Apr 22, 2012
Posts: 17424
I tried doing this
Admin Panel -> Groups -> Permissions -> Attachments -> Enable Attachments
but "Allow All" was already selected in the list box (which was the only control shown for Enable Attachments). When I tried clicking the individual category names instead I got an error on "Save":
You have an error in your SQL syntax near 'jforum_role_values FROM jforum_role_values rv, jforum_roles r WHERE r.role_id = ' at line 1
Is there a way to manually edit the configuration to turn on attachments? I'd like to have them for private mail as well as the actual forums.

Running 2.1.5 with MySQL backend, on Linux.
[originally posted on jforum.net by Anonymous]
Migrated From Jforum.net
Ranch Hand

Joined: Apr 22, 2012
Posts: 17424
No, mysql reports server version as 3.23.58.
[originally posted on jforum.net by Anonymous]
Migrated From Jforum.net
Ranch Hand

Joined: Apr 22, 2012
Posts: 17424
Ahhh.. that crap version ;)

Take a look here:

http://www.jforum.net/confluence/display/configuration/MySQL+3.23

Rafael
[originally posted on jforum.net by Rafael Steil]
Migrated From Jforum.net
Ranch Hand

Joined: Apr 22, 2012
Posts: 17424
Attachments started working for regular forums, but not for private messages. I'm using JForum for a class, and would like to enable private message attachments for students to use in submitting their homework assignments. Is there any way to turn this on?
[originally posted on jforum.net by Anonymous]
Migrated From Jforum.net
Ranch Hand

Joined: Apr 22, 2012
Posts: 17424
(assuming you're using some variant of UNIX/Linux...)

I had a problem with attachments not working, and it had to do with the upload directory not having the proper permissions.

There should be an 'upload' dir in your installation. Make sure that it is writable by the user that is running your servlet engine. In my case the directory was created by a regular user, and was writable only by the owner (744 or something like that). Tomcat was running as a 'tomcat' user and could not write to the directory.


[originally posted on jforum.net by heehaw]
Migrated From Jforum.net
Ranch Hand

Joined: Apr 22, 2012
Posts: 17424
Attachments directory is there and writable, and for normal forums the "Attach Files" button is present. Not for private messages, though, and that's where I'd really like to use attachments.
[originally posted on jforum.net by DSosnoski]
Migrated From Jforum.net
Ranch Hand

Joined: Apr 22, 2012
Posts: 17424
Ah, private messages does not have support for private messages yet.

Rafael
[originally posted on jforum.net by Rafael Steil]
Migrated From Jforum.net
Ranch Hand

Joined: Apr 22, 2012
Posts: 17424
I like this,"Allow All" was already selected in the list box ,but i also submit,that's ok

anthor question:when i user mysql5.0.12,should i replace the file "mysql.sql" by "mysql_41.sql" ?

[originally posted on jforum.net by wangzhang]
Migrated From Jforum.net
Ranch Hand

Joined: Apr 22, 2012
Posts: 17424
I don't have Attach Files button (CVS 27/9/2005). Permissions are set. Is there upload problem with sqlserver?
[originally posted on jforum.net by Anonymous]
Migrated From Jforum.net
Ranch Hand

Joined: Apr 22, 2012
Posts: 17424
Oops. Problem was with file permissions.
[originally posted on jforum.net by Anonymous]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to upload an attachment?