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 19347 Jan 16, 2006, 1:39 AM
Thread Re: [Andy] [EXAMPLE] Image upload help.. using FILE types
netnow21 18589 Feb 20, 2006, 6:36 PM
Thread Re: [netnow21] [EXAMPLE] Image upload help.. using FILE types
pugdog 18551 Feb 20, 2006, 11:14 PM
Thread Re: [pugdog] [EXAMPLE] Image upload help.. using FILE types
theguy 18564 Mar 14, 2006, 2:27 AM
Thread Re: [theguy] [EXAMPLE] Image upload help.. using FILE types
Andy 18484 Mar 14, 2006, 6:32 AM
Thread Re: [Andy] [EXAMPLE] Image upload help.. using FILE types
theguy 18464 Mar 14, 2006, 8:37 AM
Thread Re: [theguy] [EXAMPLE] Image upload help.. using FILE types
theguy 18507 Mar 14, 2006, 10:05 PM
Thread Re: [theguy] [EXAMPLE] Image upload help.. using FILE types
afinlr 18476 Mar 15, 2006, 4:41 AM
Thread Re: [afinlr] [EXAMPLE] Image upload help.. using FILE types
theguy 18507 Mar 15, 2006, 1:58 PM
Thread Re: [theguy] [EXAMPLE] Image upload help.. using FILE types
Andy 18419 Mar 19, 2006, 8:47 AM
Thread Re: [Andy] [EXAMPLE] Image upload help.. using FILE types
theguy 18443 Mar 27, 2006, 2:08 PM
Thread Re: [theguy] [EXAMPLE] Image upload help.. using FILE types
Andy 18401 Mar 27, 2006, 2:18 PM
Thread Re: [Andy] [EXAMPLE] Image upload help.. using FILE types
theguy 18431 Mar 27, 2006, 2:36 PM
Thread Re: [theguy] [EXAMPLE] Image upload help.. using FILE types
Andy 18360 Mar 27, 2006, 2:42 PM
Thread Re: [Andy] [EXAMPLE] Image upload help.. using FILE types
theguy 18379 Mar 27, 2006, 3:32 PM
Thread Re: [theguy] [EXAMPLE] Image upload help.. using FILE types
brewt 18365 Mar 27, 2006, 3:35 PM
Thread Re: [brewt] [EXAMPLE] Image upload help.. using FILE types
theguy 18424 Mar 27, 2006, 3:38 PM
Thread Re: [theguy] [EXAMPLE] Image upload help.. using FILE types
brewt 18354 Mar 27, 2006, 3:49 PM
Thread Re: [brewt] [EXAMPLE] Image upload help.. using FILE types
theguy 18362 Mar 27, 2006, 4:26 PM
Thread Re: [theguy] [EXAMPLE] Image upload help.. using FILE types
theguy 18311 Mar 31, 2006, 1:47 PM
Thread Re: [theguy] [EXAMPLE] Image upload help.. using FILE types
brewt 18262 Mar 31, 2006, 2:01 PM
Post Re: [brewt] [EXAMPLE] Image upload help.. using FILE types
theguy 6622 Apr 1, 2006, 1:06 AM
Post Post deleted by theguy
theguy 18432 Mar 14, 2006, 12:32 AM
Thread Re: [Andy] [EXAMPLE] Image upload help.. using FILE types
theguy 18409 Mar 15, 2006, 3:13 PM
Thread Re: [theguy] [EXAMPLE] Image upload help.. using FILE types
theguy 18423 Mar 16, 2006, 4:11 AM
Post Re: [theguy] [EXAMPLE] Image upload help.. using FILE types
tkporcel 18583 Mar 16, 2006, 5:54 AM
Thread Re: [Andy] [EXAMPLE] Image upload help.. using FILE types
theguy 6483 Jun 23, 2006, 1:41 AM
Thread Re: [theguy] [EXAMPLE] Image upload help.. using FILE types
Payooo 6607 Jun 23, 2006, 3:00 AM
Post Re: [Payooo] [EXAMPLE] Image upload help.. using FILE types
theguy 6515 Jun 23, 2006, 8:51 AM
Thread Re: [Andy] [EXAMPLE] Image upload help.. using FILE types
Payooo 6539 Jun 23, 2006, 3:12 AM
Thread Re: [Payooo] [EXAMPLE] Image upload help.. using FILE types
brewt 6582 Jun 23, 2006, 1:57 PM
Thread Re: [brewt] [EXAMPLE] Image upload help.. using FILE types
Payooo 6532 Jun 24, 2006, 5:52 AM
Post Re: [Payooo] [EXAMPLE] Image upload help.. using FILE types
brewt 6527 Jun 25, 2006, 2:24 AM
Thread Re: [brewt] [EXAMPLE] Image upload help.. using FILE types
Payooo 6511 Jun 24, 2006, 6:07 AM
Post Re: [Payooo] [EXAMPLE] Image upload help.. using FILE types
brewt 6516 Jun 25, 2006, 2:31 AM