This topic is locked

Image Upload

4/28/2005 10:43:47 PM
PHPRunner General questions
pplaut author

I love the image upload option. I would also like to update other file types.

I can upload other file types, but it appears to convert to a .bin file type.
I was trying to upload pdf and zip files.
Any help on this would be appreciated.
Thanks

Peer

Sergey Kornilov admin 4/29/2005

Peer,
you can store files in database with their names. This will prevent file types from changing.
Select Database file option for your field in both "View as" and "Edit as" columns on the Formatting tab in PHPRunner. Then click in "View format" column and select a field to store filenames.

pplaut author 4/29/2005

Do i add the extenstions, ie *.pdf or .pdf or pdf??

Thanks

Peer

pplaut author 4/29/2005

I followed your directions and answered my own question...

sorry. please disregard previous post

peer

501194 5/17/2005

Hi, I'm new to PHPRunner and am trying to impress my Boss with it's merits, I am also new to SQL too, so bare with me!
I see the way to show an image as described above, but when I choose "View Format" the drop-down list is blank. I realise this is probably just my ignorance with such things but do I have to have a field prepared in MySQL already for this, if so what format should it take?
Thanks for your help.

K
Knud van Eeden 5/17/2005

Database: MySql: PHPRunner: Image: Upload: How to upload images in your database with PHPRunner?

http://www.faqts.com/knowledge_base/view.p.../35994/fid/1805

K
Knud van Eeden 5/17/2005

But if you only have to store a filename, I think, you could maybe use something like:
--- cut here: begin --------------------------------------------------
CREATE TABLE `table1` (

`PhotoFilename` VARCHAR(100) NOT NULL DEFAULT ''

);
--- cut here: end ----------------------------------------------------

K
Knud van Eeden 5/17/2005

Note:
Here the '' after DEFAULT, are actually 2 single quotes,

so better copy/paste if necessary:
`PhotoFilename` VARCHAR(100) NOT NULL DEFAULT ''

Sergey Kornilov admin 5/18/2005

russ,
to store images in database you only need to select "View as" and "Edit as" types Database image on Formatting tab in PHPRunner.

R
russgalleywood 5/18/2005

Thanks to both of you for your prompt reply, I used the link to create the table and fields and then followed the instructions above for the PHPRunner bit and now have working images.

Sorry to be cheeky but, next question is how could I allow users to enlarge the image in a seperate window by clicking on it? If this is an extremely lengthy PHP script then don't worry about replying, I'll figure it out!

I realise this is slightly outside the job of PHPRunner and therefore not neccessarily the right place to post the question!
Thanks again for both your help <img src='https://asprunner.com/forums/file.php?topicimage=1&fieldname=reply&id=4452&image=1&table=forumreplies' class='bbc_emoticon' alt=':D' />

pplaut author 5/18/2005

What I think I would do in this case is............

Create two image uploads............

A thumbnail............... and a full size image
Then (outside of PHP runner I suspect) I would hand code the link on the thumbnail to open the full size image.....
Just a thought....
Peer

R
russgalleywood 5/20/2005

Thank-you for your help.

Due to the friendly and quick responses on the forum and being impressed with the program I have now purchased it to build our new database with.

So thanks to all for the customer service! <img src='https://asprunner.com/forums/file.php?topicimage=1&fieldname=reply&id=4486&image=1&table=forumreplies' class='bbc_emoticon' alt=':D' />