PhpUpload
Uploading files from PHP Projects
This page presents a proposal for how file uploading should be performed inside of NetBeans PHP projects.
In order to provide a smooth workflow, the NetBeans uploading process should be fairly silent and non-invasive. Most users will want to press a button and have their files uploaded without dialogs or log windows popping up. They should only be interrupted if something goes wrong.
However, since uploading files can overwrite existing files on the server, the user needs to be warned about this possibility before the upload process begins. Clicking Run or invoking the upload context-menu action should bring up the following dialog.
http://wiki.netbeans.org/attach/PhpUpload/uploadconfirm_PhpUpload.png
Rather than prompting users when an existing file is encountered on the server, displaying a warning before the upload process starts allows them to confirm or reject the action and get right back to their work. Once this dialog has been displayed and the user understands that NetBeans isn't able to use some kind of "smart" reasoning to determine whether to overwrite files or not, they can check the box in order not to see this dialog in the future.
This box will be tied to a new checkbox in the Project Properties, as shown below.
http://wiki.netbeans.org/attach/PhpUpload/config-remote-withconfirm_PhpUpload.png
If the user confirms that they want to upload the files, the upload progress will be shown in the status bar, as shown below. The user can click the cancel button to the right of the progress bar to stop the upload process.
http://wiki.netbeans.org/attach/PhpUpload/statusbar-uploading_PhpUpload.png
Once the upload process has finished, a message will be displayed on the left side of the status bar, which will fade out after a few seconds (as is done with Build and Run actions).
http://wiki.netbeans.org/attach/PhpUpload/statusbar-finished_PhpUpload.png

