Netbeans: how to upload file into different folder? - netbeans

I would like to upload a files in Netbeans, for example from: C:/my_folder in my computer into /home/public_html folder on the server. I've specified initial path as /home and upload directory as /public_html, and in the properties my path looks like this: sftp://host.name.com/home/public_html.
But when I upload files I find them in the /home/public_html/my_folder ... how to fix it? Because I've tried all options in the properties but still doesn't work.

You have to create a new project and set your project folder to C:/my_folder. Set your upload path to /home/public_html as you have.
Now, if you have a file C:/my_folder/x.html it will be uploaded to /home/public_html/x.html.

Here is a step by step instructions to upload files from Netbeans.
http://www.gridsandguides.com/blog/how-to-use-net-beans-to-edit-file-on-server

Related

Upload .css file after saving .scss file

I use Visual Studio Code and WinSCP. When I open .scss file via WinSCP the file is opened automatically by VSC – It's ok. There is an extension Live Sass Compiler to I could compile .scss into .css file. The problem is that .css file is created in temporary folder with random number so I always must upload the file manually by drag the file from the folder to FTP client.
Is it there any solution to upload the .css file automatically on save from the temporary folder? Thank you in advance for a help.
Download the files to a local folder.
Have WinSCP monitor the folder and automatically upload any modifications (including new files).
Edit the files locally (and have WinSCP upload the changes, including the generated files).
For your literal question, there's WinSCP feature request.

Netbeans ignoring upload relative file path

Netbeans has stopped uploading files using the relative file structure. No matter what I upload path settings I enter, it uploads only to the server root. How can I fix this?
The problem is just for one project; other projects using the same configuration are okay.
I compared the files in nbproject with a working project and there are no differences.
I changed the "upload directory" but it doesn't change where the file gets uploaded to
I deleted the project and
created it anew.
It seems to be simply ignoring the config.
On my local computer, the path is:
/MyNetbeans/Project
/Source Files
/folder1
/folder2
MyFile.php
/Include Path
/Remote Files
When I upload, it saves the file to
/folder2/MyFile.php
but it should save it to
/folder1/folder2/MyFile.php
Netbeans 12.0,
Windows 10
Any ideas for getting it to upload using the relative path?
SOLUTION: change the Sources folder in Project Properties.
From the Netbeans File menu > Project properties > under Categories select "Sources". Next to "Source folder:" click BROWSE. Navigate to the folder, higher or lower, in the local directory structure which matches the directory structure on the server > OK.
Upload the file and check the server to see where it was saved. Rinse, lather and repeat as necessary.

How to get image file into Netbeans project tree?

For my web application I am developing in netbeans I need access to an image file.
However, using an absolute file path to the location on my computer where the file is located doesn't work.
Hence I tried to include the file into my netbeans project in order to be able to refer to it with a relative file path.
Here:
How do I add an image file in netbeans?
it is claimed that one could simply copy and paste the file into the desired folder of one's Netbeans project tree (inside the IDE).
However, this doesn't work either.
How can I get this file file (it's a png file by the way) into my Netbeans Web App?

Where is the config folder for JetBrains IDE?

I am trying to add a custom color theme to my phpstorm and everything I read says you need to add a colors folder inside of the config folder, and then copy the xml or icls file in there, but I can't find the config folder.
C:\Program Files\JetBrains\PhpStorm 2017.1.3
I am in the right directory but there is no folder called config and I'm not sure what to do. Could it be in some different place?
have a look at
https://intellij-support.jetbrains.com/hc/en-us/articles/206544519-Directories-used-by-the-IDE-to-store-settings-caches-plugins-and-logs
you should find your config files under
c:\Users\yourname\.PhpStorm2016.1\config

netbeans ftp configuration

I've set up my FTP connection for my project, but when it uploads the file, it adds a directory named after the project to the uploads (which means it isn't going to the right folder).
i.e.
initial directory set to '/httpdocs';
no upload directory specified.
I upload a file from my local folder:
project name/library/script.php
I want it to go here:
FTP/httpdocs/library/script.php
but it's going here:
FTP/httpdocs/PROJECTNAME/library/script.php
Can anyone help me get this configured correctly?
Then you are making your project in netbeans one folder too high. The project should be created with the main folder being the root folder, not the folder that holds the root folder (the one with the name of the folder).
So, you need to recreate your project with the correct folder being the root folder, and you should be all set.