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
Cheers
File Maximum Size: 250000 will not work on the modify form - it will allow you to upload file which size exceeds the value in File Maximum Size
And when you validate changes in admin, admin will notify you that file size is bigger than allowed.
This is a very old bug
Check here http://www.gossamer-threads.com/perl/gforum/gforum.cgi?post=266247#266247
And be sure to read the next post
Sometime I really do not understand GT policy on bugs. We help them to find/correct bugs, we take the time to report hem and what they do - fix only one version.
Maybe they should have some kind of bug reporting interface or something like that.