Multiple File Uploading
Uploading to multiple portals under an account
It is possible to upload items to multiple portals in a single account. These items are added to portals and can be used by the portal owner in the same way they do their own files. So if an image is added it can be selected from the image viewer while editing a page. An individual portal user is granted the same rights over their copy of the image. This means they can delete it if they wish and this will not delete it from all other portals in the account. The account owner can delete a file that has been uploaded to all portals. This can be useful if a mistake has been made however if the file they delete has been used by one of the portals, such as an image on a page, it will no longer be available and the page author will have to upload a replacement to their own portal.Important
The upload and delete process is not instant. A schedule runs every 5 minutes to check for work that needs to be performed. Because an account could have many portals and we are not aware of the amount of work required at the time of the initial upload it makes sense to sperate the upload process. What actually happens is the file is uploaded to a special area and registered with the database for the next schedule. When the next schedule is fired it reviews all uploads and deletions that need to be undertaken and then methodically processes them all. Because the process can take some time it is better for the process to operate directly on the server without passing through various security protocols or through the web server as this would encumber the process and cause extra load on the server. Instead it operates with its own thread pool and load is managed. Tests have shown it can handle 1,000 file uploads and 1,000 file deletions in under 30 seconds without placing undue load on the server.cron_global_items.php
This file resides in the root directory and is called every 5 minutes using php -qProgrammer Notes | Return to What's up?
