Filehandling in CGBetterForms

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Locked
tamsrud
Forum Members
Forum Members
Posts: 37
Joined: Mon Jun 06, 2011 6:25 am

Filehandling in CGBetterForms

Post by tamsrud »

I have some problems figuring out how to handle file-uploads in CGBetterForms properly. Im mostly interested in sending the form results a a predefined email-adress.

Everyting is working fine. The file is uploaded, and the email recipient gets a url for downloading the file.

But I cannot get validation to work. So there is no limit on filetype or filesize using

Code: Select all

<input type="file" id="fil" class="form-control" name="fil" data-cgbf-accept="image/*,application/*pdf,application/*word*" data-cgbf-maxsize="1024">
with validation: "Validate uploaded files".

And I cannot find a way to get the server to delete the files after a set time. Eg. 90 days. Is there any smart way to do this? I dont want the server to be filled up with old files.
Locked

Return to “Modules/Add-Ons”