Gossamer Forum
Home : Products : Gossamer Links : Discussions :

[EXAMPLE] Image upload help.. using FILE types

Quote Reply
[EXAMPLE] Image upload help.. using FILE types
Hi,

I thought I'd post this as a bit of help, for those who are struggling with file uploads :) (this example is for images, gif/jpg/png);

Quote:
Column Name: Image1
Column Type: CHAR
Column Size: 255
Not Null: No

Form Information

Form Display: Image 1
Form Type: FILE
File Save Location: /full/path/to/where/images/should/be/saved
File Save URL: http://www.domain.com/full/location/where/images/should/be/saved/
File Save Method: HASHED
File Maximum Size: 250000
Form Regex : ^([%\w-]+\.(?:jpe?g|JPE?G|gif|GIF|png|PNG)|)$


You also need to add something like this in include_form.html;


<div class="row clear">
<label for="Image1" class="name">Image:</label>
<div class="value">
<input type="file" name="Image1" class="text">
</div>
</div>

Hope that helps anyone whos looking at adding image uploads in GLinks 3.0.x Smile

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!

Last edited by:

Andy: Nov 1, 2008, 3:16 AM
Subject Author Views Date
Thread [EXAMPLE] Image upload help.. using FILE types Andy 11208 Jan 16, 2006, 1:39 AM
Thread Re: [Andy] [EXAMPLE] Image upload help.. using FILE types
netnow21 10806 Feb 20, 2006, 6:36 PM
Thread Re: [netnow21] [EXAMPLE] Image upload help.. using FILE types
pugdog 10778 Feb 20, 2006, 11:14 PM
Thread Re: [pugdog] [EXAMPLE] Image upload help.. using FILE types
theguy 10778 Mar 14, 2006, 2:27 AM
Thread Re: [theguy] [EXAMPLE] Image upload help.. using FILE types
Andy 10703 Mar 14, 2006, 6:32 AM
Thread Re: [Andy] [EXAMPLE] Image upload help.. using FILE types
theguy 10704 Mar 14, 2006, 8:37 AM
Thread Re: [theguy] [EXAMPLE] Image upload help.. using FILE types
theguy 10719 Mar 14, 2006, 10:05 PM
Thread Re: [theguy] [EXAMPLE] Image upload help.. using FILE types
afinlr 10693 Mar 15, 2006, 4:41 AM
Thread Re: [afinlr] [EXAMPLE] Image upload help.. using FILE types
theguy 10738 Mar 15, 2006, 1:58 PM
Thread Re: [theguy] [EXAMPLE] Image upload help.. using FILE types
Andy 10643 Mar 19, 2006, 8:47 AM
Thread Re: [Andy] [EXAMPLE] Image upload help.. using FILE types
theguy 10626 Mar 27, 2006, 2:08 PM
Thread Re: [theguy] [EXAMPLE] Image upload help.. using FILE types
Andy 10620 Mar 27, 2006, 2:18 PM
Thread Re: [Andy] [EXAMPLE] Image upload help.. using FILE types
theguy 10657 Mar 27, 2006, 2:36 PM
Thread Re: [theguy] [EXAMPLE] Image upload help.. using FILE types
Andy 10592 Mar 27, 2006, 2:42 PM
Thread Re: [Andy] [EXAMPLE] Image upload help.. using FILE types
theguy 10612 Mar 27, 2006, 3:32 PM
Thread Re: [theguy] [EXAMPLE] Image upload help.. using FILE types
brewt 10596 Mar 27, 2006, 3:35 PM
Thread Re: [brewt] [EXAMPLE] Image upload help.. using FILE types
theguy 10638 Mar 27, 2006, 3:38 PM
Thread Re: [theguy] [EXAMPLE] Image upload help.. using FILE types
brewt 10585 Mar 27, 2006, 3:49 PM
Thread Re: [brewt] [EXAMPLE] Image upload help.. using FILE types
theguy 10585 Mar 27, 2006, 4:26 PM
Thread Re: [theguy] [EXAMPLE] Image upload help.. using FILE types
theguy 10508 Mar 31, 2006, 1:47 PM
Thread Re: [theguy] [EXAMPLE] Image upload help.. using FILE types
brewt 10489 Mar 31, 2006, 2:01 PM
Post Re: [brewt] [EXAMPLE] Image upload help.. using FILE types
theguy 3342 Apr 1, 2006, 1:06 AM
Post Post deleted by theguy
theguy 10667 Mar 14, 2006, 12:32 AM
Thread Re: [Andy] [EXAMPLE] Image upload help.. using FILE types
theguy 10629 Mar 15, 2006, 3:13 PM
Thread Re: [theguy] [EXAMPLE] Image upload help.. using FILE types
theguy 10647 Mar 16, 2006, 4:11 AM
Post Re: [theguy] [EXAMPLE] Image upload help.. using FILE types
tkporcel 10685 Mar 16, 2006, 5:54 AM
Thread Re: [Andy] [EXAMPLE] Image upload help.. using FILE types
theguy 3190 Jun 23, 2006, 1:41 AM
Thread Re: [theguy] [EXAMPLE] Image upload help.. using FILE types
Payooo 3291 Jun 23, 2006, 3:00 AM
Post Re: [Payooo] [EXAMPLE] Image upload help.. using FILE types
theguy 3236 Jun 23, 2006, 8:51 AM
Thread Re: [Andy] [EXAMPLE] Image upload help.. using FILE types
Payooo 3249 Jun 23, 2006, 3:12 AM
Thread Re: [Payooo] [EXAMPLE] Image upload help.. using FILE types
brewt 3277 Jun 23, 2006, 1:57 PM
Thread Re: [brewt] [EXAMPLE] Image upload help.. using FILE types
Payooo 3213 Jun 24, 2006, 5:52 AM
Post Re: [Payooo] [EXAMPLE] Image upload help.. using FILE types
brewt 3233 Jun 25, 2006, 2:24 AM
Thread Re: [brewt] [EXAMPLE] Image upload help.. using FILE types
Payooo 3219 Jun 24, 2006, 6:07 AM
Post Re: [Payooo] [EXAMPLE] Image upload help.. using FILE types
brewt 3225 Jun 25, 2006, 2:31 AM