• 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Knute Snortum
  • Bear Bibeault
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • Piet Souris
  • Ganesh Patekar
Bartenders:
  • Frits Walraven
  • Carey Brown
  • Tim Holloway

Attach Files

 
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ok, so I figured out how to make an attachment. It turns out the file I was trying to attach was empty and therefore would not attach.

I am still wondering if their is any way to attach a file to a private message?

Thanks,

Alan
[originally posted on jforum.net by alan]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How do I attach a file? I have tried using the attach files button, then browsing to the file I wish to attach but have not been able to do so. I even tried in the test area of this forum but with no luck. I have also tried to attach a file to this post. We will see if it works.

Also, can an attachment be added to a private message?

Thakns,

Alan
[originally posted on jforum.net by alan]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
No, it's not possible to attach files to private messages yet. In fact, this was a missing feature in 2.1.6 :\

Rafael
[originally posted on jforum.net by Rafael Steil]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Rafael, I am willing to implement this feature. I am using the latest release, 2.1.8, and I would like to add the support over that version. I am ready to start working right now as I need that feature.

How should I go about this so that it can be added to new versions (JForum 3)? The page about how to contribute is not yet available.

Thanks in advance,

Diego
[originally posted on jforum.net by andune76]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Take a look at the code of PostAction.java, method insertSave(), and then at PrivateMessageAction.java. There you will find the calls (PostAction.java) to handle Attachments.

Rafael
[originally posted on jforum.net by Rafael Steil]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks a lot, I just saw your post. It is great working with JForum, I had no trouble finding the places where I had to make the changes.

I am nearly done, the attachments for private messages are working now. You had left the tables and entity classes ready (I suppose you planned to implement it, thanks again), I just had to change the actions, DAO, etc. I will now look into the quota checking configuration to add that control.

Let me know how to contribute the attachment support.
[originally posted on jforum.net by andune76]
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!