We are transitioning over to a new forum platform. Please post new issues there. Existing threads will be dealt with here unless you choose to move them over. Visit the new forum

Forum

Thread tagged as: Question, Configuration, Forms

Image / File upload for forms

A very quick question relating to image uploads. The filetypes.ini are correct (I am just trying to upload a JPEG) through a form but I believe that I need to assign a "File save location". My debug message is "File save location not set, files discarded."

I cannot find documentation how to do this. Please can a link to the relevant forum post / documentation page be provided?

Template code for field:

<perch:label for="jpeg">Photo</perch:label>
<perch:input type="image" id="jpeg" name="jpeg" label="Photo" />

Perch: 2.8.4 Installed apps: content (2.8.4), assets (2.8.4), categories (2.8.4), perch_blog (4.6), perch_forms (1.8.3)

Ben Stillwell

Ben Stillwell 1 points

  • 5 years ago
Ben Stillwell

Ben Stillwell 1 points
Registered Developer

Okay, so I now see the instructions in the admin control panel when configuring forms.

I have a set a folder for the images and it is writable by PHP. When uploading images the uploader shows as uploading an image but the form just refreshes on itself without submitting. The debug message shows no errror just:

Debug Message
SELECT DISTINCT settingID, settingValue FROM perch2_settings WHERE userID=0
Array
(
    [jpeg] => filetype
)
SELECT regionKey, regionHTML FROM perch2_content_regions WHERE regionPage='/rep-signup.php' OR regionPage='*' ORDER BY regionPage DESC
Drew McLellan

Drew McLellan 2638 points
Perch Support

Do you have any redirects in place?

Does the form work without the upload?

Ben Stillwell

Ben Stillwell 1 points
Registered Developer

Form processes fine without the image. Cant see any redirects but i will review the .htaccess file.