captainbang1
Forum Replies Created
-
Forum: Plugins
In reply to: [Contact Form 7] File attachment LimitIs this what i need to amend?
$allowed_file_types = array_unique( $allowed_file_types );
$file_type_pattern = implode( ‘|’, $allowed_file_types );$allowed_size = 1048576; // default size 1 MB
if ( $file_size_a = $tag->get_option( ‘limit’ ) ) {
$limit_pattern = ‘/^([1-9][0-9]*)([kKmM]?[bB])?$/’;foreach ( $file_size_a as $file_size ) {
if ( preg_match( $limit_pattern, $file_size, $matches ) ) {
$allowed_size = (int) $matches[1];if ( ! empty( $matches[2] ) ) {
$kbmb = strtolower( $matches[2] );if ( ‘kb’ == $kbmb )
$allowed_size *= 1024;
elseif ( ‘mb’ == $kbmb )
$allowed_size *= 1024 * 1024;Taken from the Editing contact-form-7/modules/file.php (inactive)
Forum: Plugins
In reply to: [Contact Form 7] File attachment LimitThanks for your advice Takayuki, but i cannot find “php.ini” under the plugin editor.
i cannot find any files matching this in the link you sent
can you advise?
thanksForum: Plugins
In reply to: [Contact Form 7] Attachments not being receivedT
Forum: Plugins
In reply to: [Contact Form 7] No attached file in E-MailHi,
I used 10000000 because the plugin was saying to enter in bytes. I didnt know I could use mb.
I used file-26 because that is what was created so i just went with it.
Thanks for your advice it was the file 26 part that i didnt enter into the file attachment field.
Thanks again!
Forum: Plugins
In reply to: [Contact Form 7] No attached file in E-MailI am having the same issue. All my test mails are coming through with no attachments.
i am not with one.com so thats not the issue. Below is the code which seems fine. Any ideas??
<p>Upload Your Catch
[file file-26 limit:10000000 filetypes:jpeg|png|jpg] </p>