Box Upload Fails When PHP File Contains curl_exec()
I'm experiencing an unusual upload issue with Box and have been able to narrow it down to a specific PHP function: curl_exec().
When I attempt to upload a PHP or TXT file containing the literal text curl_exec(), Box fails the upload with the following error:
-
"Oops! 1 file failed to upload."
-
"1 Error: Network Error."
I've done quite a bit of testing to isolate the problem:
-
Other files upload successfully to Box.
-
A PHP file without
curl_exec()uploads successfully. -
A PHP file containing
curl_exec()fails. -
Even a minimal test file containing only a basic function with
curl_exec()fails. -
Removing
curl_exec()from my original PHP file allows it to upload. -
The same file uploads successfully to Google Drive.
-
I've tested Box.com and Box Drive, Chrome and Edge, two different computers, and both my home internet connection and a mobile hotspot.
-
I've temporarily disabled NETGEAR Armor and Bitdefender's firewall and Online Threat Prevention features without any change.
This appears to be related to the contents of the file rather than the file size, extension, computer, browser, or network connection.
My question:
Does Box perform content inspection or security scanning during uploads that could be incorrectly flagging files containing certain PHP functions?
I'd like to determine whether this is an issue with Box's upload processing or a security rule that is incorrectly rejecting the file.
I can provide minimal test files that reproduce the issue if needed. The files contain no actual API credentials or sensitive information.
Thanks!
