BullGuard Antivirus Sale - 60% Off with openElement !
Forum Home Forum Home >

openElement

> User Tutorials
  New Posts New Posts RSS Feed - [Tutorial] Raise file transfer size limit
  FAQ FAQ  Forum Search   Register Register  Login Login

[Tutorial] Raise file transfer size limit

 Post Reply Post Reply
Author
Message
Hobby001 View Drop Down
Admin Group
Admin Group
Avatar

Joined: Jun 05 2018
Location: Canada, Québec
Status: Offline
Points: 6195
Post Options Post Options   Thanks (0) Thanks(0)   Quote Hobby001 Quote  Post ReplyReply Direct Link To This Post Topic: [Tutorial] Raise file transfer size limit
    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.



Edited by Hobby001 - Jun 05 2021 at 11:10pm
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.078 seconds.