An Oracle blog about NetBeans for PHP

New Download/Upload dialog

Guest Author

Hi, today it will be again a very short blog post about a feature we just added to the development version of NetBeans. Many of you requested this change so we hope that you will like this change:

New Remote Files Selection

The behavior should be as expected, it means that if one checks a directory, all folders and files underneath the directory are checked as well.

However, if anyone of you still prefer the current dialog (a "table"), start NetBeans with -J-Dnb.php.transfer.ui.table=true and leave a comment why do you think it's better, an option could be added for it (probably in Tools > Options > PHP).

That's all for today, as always, please test it and report all the issues or enhancements you find in NetBeans IssueZilla (component php, subcomponent FTP Support).

Join the discussion

Comments ( 17 )
  • Oliver Monday, March 8, 2010

    Thats great, but would be better if one could see the difference between partial selections and full selections. In your screenshot, the "apps" should be either grey, or a "-" instead of the check.

  • Tomas Mysik Monday, March 8, 2010

    To Oliver:

    Feel free to submit a bug.

  • kocha Tuesday, March 9, 2010

    Great Idea,

    another really nice thing would be to have that kind of tree view for SVN synching like it is done in Eclipse. The current table layout is not optimal imho and I know people who refrain from using Netbeans just because of this.

  • Tomas Mysik Tuesday, March 9, 2010

    To kocha:

    Again, feel free to submit a bug (against Subversion support in NetBeans). Thanks.

  • alexey_baranov Tuesday, March 9, 2010

    Very Nice!

  • Pies Tuesday, March 9, 2010

    Any plans to integrate directory syncing (i.e. showing only the files that are different between local and FTP) and diff?

  • Snake Tuesday, March 9, 2010

    It is cool that there are more support on the remote project.

    I know you guys work very hard and have limit time and resource. but just some opinions on "upload on save" option:

    When "upload on save" is on, if NB detects the remote file's source differ to the saved file's original source ( before it was edited ), the prompt is shown to have three options: [ overwrite remote, cancel and overwrite local ].

    So it will prevent developer to overwrite someone's changes ( it always happens :p ) or developer doesn't need to always download all the source codes (because he/she doesn't know which files are updated by someone else)

    But syncing is not really necessary, because the case is more complicated and the developers could handle themselves if the folder or file structure is altered.

  • Tomas Mysik Wednesday, March 10, 2010

    To Pies:

    Sorry, no syncing in our plans right now; changed files should be preselected if one uploads/downloads the _source-directory_ (it does not work for individual files, the timestamp is remembered for source-directory not for each particular file).

  • Tomas Mysik Wednesday, March 10, 2010

    To Snake:

    IMHO if one works in a team, one should use any SCM (Mercurial, Subversion, Git, ...), there's no other reliable way to prevent data loss. If it is too complicated or can't be used, maybe some simpler solution (like Dropbox?) could be enough.

  • Snake Wednesday, March 10, 2010

    To Tomas Mysik:

    I really agree with you. Working in a team, SCM is needed. But there are many php developers, it might be one or two man, and a small team development, this feature really helps. As I discussed with you before (http://forums.netbeans.org/viewtopic.php?p=65570#65570 ), some situation it is hard to replicated the prod environment to the dev environment, so we will choose to develope on a central dev server.

    Or some developers might just want to use Netbeans to maintains a website. It is hard to tell a designer to use SCM ( it is great tool for developer , but not for designer ).

    The suggestion I listed before, it is not about versioning or it is quite a reliable way, we could even do it manually in the environment without SCM: Before I edited a file, first I backup a source file and edit. Before I upload it to the remote. I will compare the remote file with the backup one, if they are the same, I will upload my edited file anyway. If not, I will merge them using diff.

    Anyway, the same feature provided by Dreamweaver and I saw lots of PHP developers are sticked to DW due to this kind of things. I already convince lots of them to use NB to have more advance coding feature such as code completion, source code navigation.

    I just think it is a nice feature for a small team or one designer and one developer team.

  • Snake Wednesday, March 10, 2010

    To Tomas Mysik:

    I am not pushing you guys, because you guys have already worked on Netbeans for PHP and it really helps us and it is totally free of charge.

    I just think this feature reflects some need for some developers who doesn't have a big team or they might work with some non-technical persons. Or they just do the maintain job for old project.

  • Tomas Mysik Thursday, March 11, 2010

    To Snake:

    Feel free to submit an enhancement and we wiil see, but not for NB 6.9. Thanks.

  • Chris Tuesday, March 16, 2010

    I had misgivings about downloading netbeans again. Last time I did, it took me nearly a week of gnashing of teeth and cursing.

    I am a dialup user. Not by choice! My download speed is 10MB/h and my session online is 8 hours if I'm lucky. This results in a maximum file download of less that 80MB.

    I understand that this is Sun, and is running enterprise class servers, yet I still expect resumable downloads.

    Is there a reasonable reason to tie downloads to the user session? How about providing ftp mirrors?

    Lucky, this time I was able to find a server in Greece.

  • Massimiliano Friday, April 9, 2010


    i'm an italian developer, and i try to use netbean 6.8 fom my php projects.

    I have a problem, i create a netbean project, with an ftp folder connection (because my php file are on a server).

    The problem is:

    I modify one php file outside netbeans. Is there a way to auto update this file in netbean when i open the IDE?

    i try to explain better, if i download the single project file i have the right version. I would like to make this automatic, only for the modified file. Is this possilbe?

    I try to use the "scan for project changes" but it doesn't work.

    I hope somenone can help me, sorry for my English



  • Tomas Mysik Friday, April 9, 2010

    To Massimiliano:

    The best way to ask such questions is to use our PHP Users mailing list [1].


    [1] http://netbeans.org/projects/php/lists

  • vito Tuesday, May 18, 2010

    Hi guys,

    It's great to see this kind of improvement, it's really needed!

    It would be also nice to see and upload option, if I right-click any file or folder in the folder tree, so it would be possible to upload the selected item right away.

    Another great thing would be if I could set up a keyboard-shortcut to upload the currently active file in the editor, so I could save it to disk without uploading it, if I want to (a shortcut for uploading all of the opened files could be a nice feature as well).

  • Michal Tatarynowicz Tuesday, May 18, 2010

    To Tomas:

    Unfortunately I can't use any kind of syncing where I won't be notified of changes to the files on the server or where I can't easily preview and merge those changes.

Please enter your name.Please provide a valid email address.Please enter a comment.CAPTCHA challenge response provided was incorrect. Please try again.