Welcome, Guest
Username: Password: Remember me
Pleas keep in mind that SPAM will be deleted instantly
  • Page:
  • 1
  • 2

TOPIC: File upload (any file type)

File upload (any file type) 3 years 6 months ago #4321

  • wlouis.caltechnix.com
  • wlouis.caltechnix.com's Avatar Topic Author
  • Offline
  • Posts: 1
  • Thank you received: 0
I know I can upload image file that are resized, but can I upload somehow a *.pdf file with the form to do not have to upload via FTP?

Please Log in or Create an account to join the conversation.

File upload (any file type) 3 years 6 months ago #4322

  • Dirk
  • Dirk's Avatar
  • Offline
  • Posts: 1112
  • Karma: 21
  • Thank you received: 202
The only way to do this with joodb is to add a BLOB or better MEDIUMBLOB field to your table. Then you get a file upload form-field and the files are stored automatically into your database.

One of the next pro Versions will have the possibility to add various files stored in filesystem instead of database.

Please Log in or Create an account to join the conversation.

File upload (any file type) 2 years 10 months ago #4566

  • dipankar
  • dipankar's Avatar
  • Offline
  • Posts: 7
  • Thank you received: 0
Finally, I have stored that file into SQL table as a blob datatype and now how can I display it in a front page.

Please Log in or Create an account to join the conversation.

File upload (any file type) 2 years 10 months ago #4569

  • dipankar
  • dipankar's Avatar
  • Offline
  • Posts: 7
  • Thank you received: 0
after uploading blob file into database how can I show it on the front page.

Please Log in or Create an account to join the conversation.

File upload (any file type) 2 years 10 months ago #4570

  • Dirk
  • Dirk's Avatar
  • Offline
  • Posts: 1112
  • Karma: 21
  • Thank you received: 202
Change your view template

If it's an image.
<img src="{joodb field|BLOBFIELD}" alt="Some image" />

I it's a PDF-File, Archie ore whatever!
<a href="{joodb field|BLOBFIELD}">Download Handbook</a>

Please Log in or Create an account to join the conversation.

File upload (any file type) 2 years 10 months ago #4589

  • dipankar
  • dipankar's Avatar
  • Offline
  • Posts: 7
  • Thank you received: 0
I am not able to do that still.
let me explain my requirement is that I wanna show any file on the Front page with the link and will open in new tab.
There will be two way:
First one is that I wanna store those file into SQL table as MediumBlob and later those files want to show on the front page as like other fields.
2.may be I uploaded all those files into media manager and later I want to link all those files into database field and later it will show on the front page.
How can I do that guy?
please help me. I will be very happy and will honour to you.
Thank you so much for your advance help.

Please Log in or Create an account to join the conversation.

  • Page:
  • 1
  • 2
Moderators: Dirkjoest