PHP Uploads: Difference between revisions

630 bytes added ,  19:42, 1 March 2023
Line 45: Line 45:
#You can now disable all the "Create local" options for files in Internet Settings|Interval Settings. Local copies of the files created in the /web folder are no longer required
#You can now disable all the "Create local" options for files in Internet Settings|Interval Settings. Local copies of the files created in the /web folder are no longer required


It is important to understand the relative paths used by ''upload.php'' as this is quite different from FTP configurations where sometimes full paths are required (SFTP) or paths from the FTP root (which may differ when full ownership or shared hosting). All files will be transferred relative to that location. You can go deeper and sideways into the directory tree but not up.
It is important to understand the relative paths used by ''upload.php'' as this is quite different from FTP configurations where sometimes full paths are required (SFTP) or paths from the FTP root (which may differ when full ownership or shared hosting). All files will be transferred relative to that location. You can go deeper and sideways into the directory tree but not up. See below**




Line 61: Line 61:
NOTE: When using the Wizard you will also encounter Upload configuration which obeys the same rules.
NOTE: When using the Wizard you will also encounter Upload configuration which obeys the same rules.
NOTE: The settings are valid not only when you use ''CMX'' but also for ''CumulusUtils'' which does not have any setting for ''upload.PHP'' of its own!
NOTE: The settings are valid not only when you use ''CMX'' but also for ''CumulusUtils'' which does not have any setting for ''upload.PHP'' of its own!
=== **Extending the upload path scope ===
By default, the upload script only allows you to upload files to the same directory as the ''upload.php'' script or deeper. However, it is possible to relax this restriction. In the ''upload.php'' script there is a variable...
<pre>$limitPath = true;</pre>
Changing this to ''false'' means the script will be allowed to create files anywhere in server file system that the PHP process has write permissions.
This option should only be used if you are certain you need it, and ideally can restrict the PHP process file system permissions to the areas you want data written.


== Cumulus.ini ==
== Cumulus.ini ==