WP Contact Form 7 unable to send attachments - php

File attachments for a CF7 form stopped working recently. I can get the emails, but no attachments. Its for resumes, so only allowing pdf, docx, doc. Here's what's happening so far:
Form tab:
<label>Upload Your Resume or Portfolio (limit 2MB)</label>
[file resume filetypes:pdf|docx|doc id:resume class:form-input-text limit:1000000]
Mail tab, attachments field:
[resume]
Hosting: Godaddy
SMTP plugin: Easy WP SMTP
Only other plugin (other than CF7): Adminimize
wpcf7_uploads folder permissions 755
uploads folder permissions: 755
When I upload a file, the file doesn't appear in the temporary folder (wpcf7_uploads) at all
Fixes I've tried:
Attachment deleting after 60 secs
Did everything on this page
Also tried this fix
Tried sending form with all other unnecessary plugins deactivated
Increased file size allotment to 2mb. Sending a 6kb docx file doesn't work
This solution didn't work either
Unable to find any errors in the server logs
Tried allowing images, but didn't get any images back
Tried setting both Uploads and wpcf7_uploads permissions to 777, no luck
Tried everything in the comments on this page
If anyone else went through this whole process and found a fix, please let me know. Thanks!

Related

Cannot Upload .GLB to Wordpress Media Location

This is not a quick failure, I have spent a totally of 5 completely full days trying to figure this out. Initially I was limited by file size and then file type; in which I removed the Wordpress restrictions and am now "capable" of uploading my 177MB .glb file to Wordpress.
However when doing so, I receive the following error:
retriever.glb
Unexpected response from the server. The file may have been uploaded successfully. Check in the Media Library or reload the page.
I was on the phone with GoDaddy Specialists for 2.5 hours yesterday ensuring that this was not a Server issue or restriction on their side.. they confirmed that it was not. We pretty much ended the conversation that it is something I must figure out with me, myself, and I.
I went ahead and uploaded my .glb to the server through panel, everything worked fine. In fact I have a location for it here: https://www.tattiniboots.com/wp-content/uploads/2020/07/retriever.glb
However, this does not make the file discoverable to the 3D viewer plugins I have installed on the site through the media location.
I truly don't know where to go from here
I changed the name of the file to .png and attempted an upload and received the following error:
Post-processing of the image failed likely because the server is busy or does not have enough resources. Uploading a smaller image may help. Suggested maximum size is 2500 pixels.
I just tried to update a normal .mov file that is 150MB and received the following error; really making me think this is something to do with file size:
Unexpected response from the server. The file may have been uploaded successfully. Check in the Media Library or reload the page.
Yes, normal images are uploading just fine (2MB-ish)
I just attempted to deactivate all plugins with consideration that maybe "Smush" or another was imposing issues: I then received the issue that the file type is not supported (even with the allow all file types code in my wp-config)
Is this just the case that glb is not allowed at all?
This must be a server thing. probably a run time error
Whoever supported you just doesn't know it. GoGoDaddy. ;)
Nevertheless... you can Use a plugin that's called
media sync. Check it out and best of luck

MyBB attachment not showing up

I am experiencing a quite weird issue on my client's MyBB instance. Attachments upload works, but I can't see them when readin the thread after saving the modifications.
At first I thought it was a permission issue (chmod or htaccess), but the upload works. I can see uploaded attachments in the "/uploads/201503/" folder. I see one thumbnail file and another one with the ".attach" file extension, which is in fact my jpg image when renaming the ".attach" extension to ".jpg". So upload works.
Now looking at the database "attachments" table, I can see the uploaded attachment row. The "attachname" field shows "201503/post_2_1425271978_8162c40a2a603edc2b441bd78460f9a7.attach", which is exactly the my uploaded attachment. So, persistence to database works.
I tried removing all my htaccess files and putting chmod to 777... negative. It's not going anywhere.
Does anybody here already faced that issue?
I have searched the forum before posting.. some very old threads have showed up, but unfortunately the op did not post the solution.
I got no error/warning message whatsoever.
Many thanks for help.
Charles
Check that attachments size in db and real size are the same. If they are not, Content-length will be wrong and some browsers just fail.
Also, simply check that the permissions are such that guests can't view the attached image.

Smf image upload troubles

Folks, kindly help me.
Have the following issue with smf 2.0.4 (latest)
User cannot upload image even the smallest one. Other file extensions pass well.
Tried the following:
tracking $_FILES - no errors,
uploading as admin, adding extra attachment folder, checking server free space, forum setting for attachment limits set to maximum. Also have increased all possible php.ini limits. Chdmod is 755 for all folder, tried also 777 for attachments folder.
Kindly tell me what could be wrong ?
my phpinfo is here http://tinyurl.com/bqxchl8
The error message is as follows:
Your attachment couldn't be saved. This might happen because it took too long to upload or the file is bigger than the server will allow.Please consult your server administrator for more information.
3 months later, but wth...
Check you SMF Admin, where the Attachments and Avatars category Attachment Settings is located, and be sure that the image file you are uploading has a file extension that is located within the comma separated list for the Allowed attachment extensions setting.
There are other setting in there that you will need to change as well, such as:
Max attachment folder space
Max attachment size per post
Max size per attachment
Max number of attachments per post
Also, make sure Perform extensive security checks on uploaded image attachments setting is UNCHECKED. This can cause rejected image attachments, since this is somewhat buggy in SMF.
If you set all of these settings to 0, than it will be UNLIMITED! Therefore, no restrictions whatsoever on these.
If you still have a problem uploading image files, than go back to the Admin -> Attachments and Avatars -> Attachment Settings and uncheck: Re-encode potentially dangerous image attachments
Good Luck and hopefully this helps.

Unable to display image in PHP generated emails linked from Mad File Manager

I have this option whereby the admin can upload files, eg. pictures to the server using Mad File Manager. The "installation" of the File Manager works.
The problem occurs when I want to send an email using PHP, composed the email using TinyMCE, included the picture using the full URL, it shows... but then, when the email arrives at the other end, the image doesn't show.
What I found out is that, eg.
my domain: www.emailtest.com
upload folder: uploads
The url reflected from the image at the recipient's end only shows: uploads/image.jpg when it should be www.emailtest.com/uploads/image.jpg right?
The domain's name has been truncated.
Can anyone give me a lead on how to go about this? Thanks!
Looks like you will need to tweak the tinymce configuration settings a bit.
Have a look at the relative_urls param.

FTP upload through a PHP page

I have an administration page on a website, from which the admin AND THE ADMIN ONLY can manage users and upload files from local hard drive for these users to download. The admin uses this page to upload files for his customers or to store files he needs when he has no memory device available. The files size may vary from a few Kb to a lot of hundreds megabytes.
The ideal solution:
An HTML form through which the admin can choose a file and upload it, to download it back later. This can be done in PHP.
The problems:
I cannot set the "max_file_size" variable in php.ini because the hosting doesn't let me
I tried FTP upload (PHP function ftp_put()) but it requires me to upload the file with a POST anyway
Even though it's completely wrong, I used a input="text" instead of input="file" to write the whole file path and upload it, but I get the following error:
Warning: ftp_put(insert_local_file_path_here)[function.ftp-put]:
failed to open stream: No such file or directory in path_to_php_script.php on line 70
The insane thing is... on Monday this was working, and now it's not. No changes were done and the file is the same.
My only conclusion:
With my little knowledge, all I could think of is a Java applet which does the required tasks that opens on the administration page. But if someone disables javascript/has no Java installed, the thing will not work, so it's not 100% bulletproof.
Have you got any ideas how to overcome such an issue?
If you need to upload big files you must use ftp protocol to make it. You can't upload big files if you don't have acces to php.ini. Sad but true

Categories