This topic is locked

Upload Image with Unique Name - and create thumbnail

6/16/2008 12:14:23 PM
PHPRunner General questions
W
wypman author

Is it possible to upload an image to a given location, creating a unique name for this file, but also place a thumbnail of the image in the database so it can appear in the database list? I want to be able to do this from the 'Add Page' and 'Edit Page' section.
I don't want to place the large image in the database.
Regards

J
Jane 6/17/2008

Hi,
unfortunately it's impossible to mix file on the disc and thumbnail in the database.

You can check off thumbnail option on the "View as" settings and "Edit as" settings dialogs on the Visual Editor tab and thumbnail will be created on the disc too.
To set up file name as unique name use Add time stamp to filename option on the "Edit as" settings dialog.

S
swanside 6/17/2008

Is it possible to upload an image to a given location, creating a unique name for this file, but also place a thumbnail of the image in the database so it can appear in the database list? I want to be able to do this from the 'Add Page' and 'Edit Page' section.

I don't want to place the large image in the database.
Regards


You can do this.
Cfeate a field as a longtext. In Visual editor on the add page double click on on the field and select as file/image and select create thumbnails on the fly I set thumbnail size to 100. On the view as again double click on the field and select image and use iboxto display images.
Hope this helps.

Swanny

W
wypman author 6/20/2008



You can do this.
Cfeate a field as a longtext. In Visual editor on the add page double click on on the field and select as file/image and select create thumbnails on the fly I set thumbnail size to 100. On the view as again double click on the field and select image and use iboxto display images.
Hope this helps.

Swanny


I'll give it a try thank you.

W
wypman author 6/20/2008

Works Great Thanks !!!

S
swanside 6/21/2008

Works Great Thanks !!!


Nice one. <img src='https://asprunner.com/forums/file.php?topicimage=1&fieldname=reply&id=30476&image=1&table=forumreplies' class='bbc_emoticon' alt=':D' />