Gossamer Forum
Home : Products : Gossamer Links : Discussions :

Re: [Andy] [EXAMPLE] Image upload help.. using FILE types

Quote Reply
Re: [Andy] [EXAMPLE] Image upload help.. using FILE types In reply to
it's working just fine but i noticed it's got a minor error when someome upload a file name
"my photo" notice the space it gives me an error and i can not upload it and it works if the file name is one word like myphoto or my_photo
can this be fixed?

In Reply To:
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
Subject Author Views Date
Thread [EXAMPLE] Image upload help.. using FILE types Andy 19092 Jan 16, 2006, 1:39 AM
Thread Re: [Andy] [EXAMPLE] Image upload help.. using FILE types
netnow21 18338 Feb 20, 2006, 6:36 PM
Thread Re: [netnow21] [EXAMPLE] Image upload help.. using FILE types
pugdog 18300 Feb 20, 2006, 11:14 PM
Thread Re: [pugdog] [EXAMPLE] Image upload help.. using FILE types
theguy 18313 Mar 14, 2006, 2:27 AM
Thread Re: [theguy] [EXAMPLE] Image upload help.. using FILE types
Andy 18233 Mar 14, 2006, 6:32 AM
Thread Re: [Andy] [EXAMPLE] Image upload help.. using FILE types
theguy 18212 Mar 14, 2006, 8:37 AM
Thread Re: [theguy] [EXAMPLE] Image upload help.. using FILE types
theguy 18256 Mar 14, 2006, 10:05 PM
Thread Re: [theguy] [EXAMPLE] Image upload help.. using FILE types
afinlr 18225 Mar 15, 2006, 4:41 AM
Thread Re: [afinlr] [EXAMPLE] Image upload help.. using FILE types
theguy 18255 Mar 15, 2006, 1:58 PM
Thread Re: [theguy] [EXAMPLE] Image upload help.. using FILE types
Andy 18166 Mar 19, 2006, 8:47 AM
Thread Re: [Andy] [EXAMPLE] Image upload help.. using FILE types
theguy 18192 Mar 27, 2006, 2:08 PM
Thread Re: [theguy] [EXAMPLE] Image upload help.. using FILE types
Andy 18149 Mar 27, 2006, 2:18 PM
Thread Re: [Andy] [EXAMPLE] Image upload help.. using FILE types
theguy 18180 Mar 27, 2006, 2:36 PM
Thread Re: [theguy] [EXAMPLE] Image upload help.. using FILE types
Andy 18108 Mar 27, 2006, 2:42 PM
Thread Re: [Andy] [EXAMPLE] Image upload help.. using FILE types
theguy 18127 Mar 27, 2006, 3:32 PM
Thread Re: [theguy] [EXAMPLE] Image upload help.. using FILE types
brewt 18114 Mar 27, 2006, 3:35 PM
Thread Re: [brewt] [EXAMPLE] Image upload help.. using FILE types
theguy 18173 Mar 27, 2006, 3:38 PM
Thread Re: [theguy] [EXAMPLE] Image upload help.. using FILE types
brewt 18101 Mar 27, 2006, 3:49 PM
Thread Re: [brewt] [EXAMPLE] Image upload help.. using FILE types
theguy 18110 Mar 27, 2006, 4:26 PM
Thread Re: [theguy] [EXAMPLE] Image upload help.. using FILE types
theguy 18060 Mar 31, 2006, 1:47 PM
Thread Re: [theguy] [EXAMPLE] Image upload help.. using FILE types
brewt 18011 Mar 31, 2006, 2:01 PM
Post Re: [brewt] [EXAMPLE] Image upload help.. using FILE types
theguy 6433 Apr 1, 2006, 1:06 AM
Post Post deleted by theguy
theguy 18180 Mar 14, 2006, 12:32 AM
Thread Re: [Andy] [EXAMPLE] Image upload help.. using FILE types
theguy 18158 Mar 15, 2006, 3:13 PM
Thread Re: [theguy] [EXAMPLE] Image upload help.. using FILE types
theguy 18172 Mar 16, 2006, 4:11 AM
Post Re: [theguy] [EXAMPLE] Image upload help.. using FILE types
tkporcel 18332 Mar 16, 2006, 5:54 AM
Thread Re: [Andy] [EXAMPLE] Image upload help.. using FILE types
theguy 6293 Jun 23, 2006, 1:41 AM
Thread Re: [theguy] [EXAMPLE] Image upload help.. using FILE types
Payooo 6418 Jun 23, 2006, 3:00 AM
Post Re: [Payooo] [EXAMPLE] Image upload help.. using FILE types
theguy 6325 Jun 23, 2006, 8:51 AM
Thread Re: [Andy] [EXAMPLE] Image upload help.. using FILE types
Payooo 6350 Jun 23, 2006, 3:12 AM
Thread Re: [Payooo] [EXAMPLE] Image upload help.. using FILE types
brewt 6393 Jun 23, 2006, 1:57 PM
Thread Re: [brewt] [EXAMPLE] Image upload help.. using FILE types
Payooo 6343 Jun 24, 2006, 5:52 AM
Post Re: [Payooo] [EXAMPLE] Image upload help.. using FILE types
brewt 6338 Jun 25, 2006, 2:24 AM
Thread Re: [brewt] [EXAMPLE] Image upload help.. using FILE types
Payooo 6321 Jun 24, 2006, 6:07 AM
Post Re: [Payooo] [EXAMPLE] Image upload help.. using FILE types
brewt 6327 Jun 25, 2006, 2:31 AM