• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

How to upload an attachment?

 
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Admin Panel -> Groups -> Permissions -> Attachments -> Enable Attachments.

Rafael
[originally posted on jforum.net by Rafael Steil]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
No, mysql reports server version as 3.23.58.
[originally posted on jforum.net by Anonymous]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
(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
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Oops. Problem was with file permissions.
[originally posted on jforum.net by Anonymous]
 
reply
    Bookmark Topic Watch Topic
  • New Topic