PHP Uploads: Difference between revisions

m
=== CumulusUtils ===
The CUtils inifile parameter ''UploadDir'' specifies a subdirectory for CUtils relative to the webroot (the location of ''upload.php'') without any specification of the URL (as that is implicit in the use of ''upload.PHP'' as specified in ''Cumulus.ini''). If you wish all files to be transferred into the same directory as specified by CMX, then leave ''UploadDir'' empty.
 
If you run ''CumulusUtils'' for ''[[Website Generator|website]]'' without [[Thrifty - Cutils Command Qualifier|Thrifty]] it may generate a lot of files which need to be uploaded. So many that your server may refuse uploads at a certain point. To avoid the uploads to fail CUtils has two optimisations for the PHP upload protocol:
 
==== MaxConcurrentUploads ====
Just like you can in CMX, you may define the number of concurrent downloads which your server can handle. The parameter ''MaxConcurrentUploads'' defaults to no value which means it takes the value you defined in CMX. IIf you give this parameter a value, that value overrules the CMX value.
 
==== delayMilliSeconds ====
Some servers have a limit to the number of HTTP Post requests can be handled (e.g. 10 per second). If that is the case you need to define a delay value for the time between uploads. This is defined with the
''delayMilliSeconds'' parameter which defaults to 0 meaning the uploads secced each other as fast as possible.
 
== Cumulus.ini ==