Print Page | Close Window

[Tutorial] Raise file transfer size limit

Printed From: openElement Website
Category:

openElement


Forum Name: User Tutorials
Forum Description: Browse or create a tutorial to get the most out of the openElement software.
Please do not post support questions in this section.
URL: https://forums.openelement.uk/en/forum_posts.asp?TID=1840
Printed Date: Feb 27 2024 at 6:45pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: [Tutorial] Raise file transfer size limit
Posted By: Hobby001
Subject: [Tutorial] Raise file transfer size limit
Date Posted: Jun 05 2021 at 11:07pm
OpenElement's Upload File(s) frm element is limited to 1 Mb

This tutorial explains a way to go around thre issue.  It's more like an expert designated solution but it works.

In your project's folder, besides the form page, you will find a file called YourFormPageName(var).php

Open it with a text editor such as notepad++

You will fincd inside a line containing: $OEConfWEUploadFiles 

<?php
$OESiteUploadDirectory = "Upload";
$OEConfWECheckBox = '{"WE98c3b18aff":{"InputName":"WE98c3b18aff"}}';
$OEConfWEListBox = '{"WE7fb5dc02ff":{"InputName":"WE7fb5dc02ff"}}';
$OEConfWERadioButtonList = '{"WEa276ccfafd":{"InputName":"WEa276ccfafd"}}';
$OEConfWETextBox = '{"WEfd2a89162b":{"InputName":"WEfd2a89162b"}}';
$OEConfWETextArea = '{"WE98dae0cd4d":{"InputName":"WE98dae0cd4d"}}';
$OEConfWEUploadFiles = '{"WE109a02f34c":{"AllowedSize":"1","AllowedTypesExt":".png,.gif,.jpg,.jpeg,.doc,.docx,.xls,.xlsx,.rtf,.txt,.pdf,.odg,.odt,.ods,.odf,.odp,.odb,.zip","InputName":"WE109a02f34c"}}';
$OEConfWESendMail = '{"WE99c0216d88":{"ScriptVersion":210,"ConfSendMail":{"IsUpdated":false,"Type":3,"TypeStr":"SMTP","SpecialType":"","SMTPHost":null,"SMTPPort":25,"SMTPUser":null,"SMTPPassWrd":null,"SMTPSSL":false},"FormLinks":{"ElementsID":{"WE109a02f34c":"WEUploadFiles2"},"ButtonSubmitID":"WE26269610cb","ButtonCancelID":null},"SendMailInfo":{"AdminEmail":{"Items":{"DEFAULT":"reception@denislafrance.net"}},"CopycacheEmail":{"Items":{"DEFAULT":""}},"CopyEmail":{"Items":{"DEFAULT":""}},"ReturnEmail":"lafrancedjb@hotmail.com","ReturnEmailID":null,"Subject":"test","SendReceipt":false,"ReceiptHeader":{"Items":{"DEFAULT":""}},"ReceiptBody":{"Items":{"DEFAULT":""}},"SendReceiptSignature":false,"ReceiptSignature":{"Target":null,"Links":{"Items":{"DEFAULT":""}}},"UserEmailID":null,"ListInputTitle":{"WE109a02f34c":{"Items":{"DEFAULT":""}}}}}}';

The 1 Mb limit is due to the "AllowedSize":"1" parameter.

Edit this line and change the value for something bigger than 1 (one);

Then transfer this file to your host using something else than openElement.  FileZila is one of the good tool.

$OEConfWEUploadFiles = '{"WE109a02f34c":{"AllowedSize":"10","AllowedTypesExt":".png,.gif,.jpg,.jpeg,.doc,.docx,.xls,.xlsx,.rtf,.txt,.pdf,.odg,.odt,.ods,.odf,.odp,.odb,.zip","InputName":"WE109a02f34c"}}';

Every time you save the page or upload it using openElement's utility, you will have to redo the process.

Your host and the mail servers must allow this file transfer size.

I could transfer a 6Mb without issues.



-------------
https://denislafrance.net/index.en.php" rel="nofollow - https://denislafrance.net https://www.youtube.com/playlist?list=PLWg7A6YtIr7WE2oJe9pX8_3u0FerqJwjo" rel="nofollow - , OE training video



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net