Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
199 views
in Technique[技术] by (71.8m points)

php - Wordpress - Downloading a zip containing an exe file

I cannot seem to be uploading a zip after downloading one containing an exe in Wordpress.

I use the plugin "Download Manager" to upload and download files.

When uploading individual files, any type, such as png pdf and even .exe it all goes fine downloading and running/opening them.

However, when uploading a zip containing an exe file, the zip file upon download gets corrupted.

unable to expand (error 1- undefined error: 0)

I would like to add that the zip being tested with is 627 mb, but goes down to 598 upon upload and when downloaded it seems to have gone down even further to 524 mb

As aforementioned, uploading individual files and downloading goes fine. Even uploading a zip containing any file extension but .exe. Once there's an executable = RIP.

I run php 7.4 on WP 5.6 using nirvana theme and plugin DownloadManager.

Additionally, I've discovered that when disabling "Chunk upload" in DownloadManager, any file that's being attempted for upload gets stuck in the process. I've tried the media library, and it works fine until we try the zip file with the exe again.

PHP settings:

php_value upload_max_filesize 1024M
php_value post_max_size 1030M
php_value memory_limit 64M

Any help, tip or anything that makes me going is much appreciated!

question from:https://stackoverflow.com/questions/65922132/wordpress-downloading-a-zip-containing-an-exe-file

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...