× Pleas keep in mind that SPAM will be deleted instantly

File upload (any file type)

  • wlouis.caltechnix.com
  • Offline
More
7 years 2 months ago #4321 by wlouis.caltechnix.com
File upload (any file type) was created by wlouis.caltechnix.com
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 to join the conversation.

More
7 years 2 months ago #4322 by Dirk
Replied by Dirk on topic File upload (any file type)
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 to join the conversation.

More
6 years 6 months ago #4566 by dipankar
Replied by dipankar on topic File upload (any file type)
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 to join the conversation.

More
6 years 6 months ago #4569 by dipankar
Replied by dipankar on topic File upload (any file type)
after uploading blob file into database how can I show it on the front page.

Please Log in to join the conversation.

More
6 years 6 months ago #4570 by Dirk
Replied by Dirk on topic File upload (any file type)
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 to join the conversation.

More
6 years 6 months ago #4589 by dipankar
Replied by dipankar on topic File upload (any file type)
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 to join the conversation.

Moderators: Dirkjoest