

How do I save a file in the top-level folder?
source link: https://www.codesd.com/item/how-do-i-save-a-file-in-the-top-level-folder.html
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

How do I save a file in the top-level folder?
the structure of folders in server look like this:
- www.example.com
- images
- web file
- here all the files for web
- index.html
- example.html
My code is inside web file folder. To save files inside the web file i can useserver.MapPath("~\\folder")
.
But how to save file to images folder which is located in upper level and same lvl as web file under www.example.com?
New learner, please guide..
how about?
server.MapPath("~/images/myfile.jpg");
Related Articles
ASP.NET MVC Routing to serve a file at the top level of the site?
Java gets the top-level folder of the zip file
Copy files from the top-level subfolder only to another location
How do I save a file using the name of the response header with cURL
How to start reading a file at the top of python?
How to include a PHP file at the site level using .HTACCESS or other methods
How to write a simple C # script to copy the file to the top-level directory?
Select in the top level folder
How to save download files outside the Rails application folder?
How do I save a variable at the application level in php?
How can I copy a file to the Tomcat Webapp folder via maven?
How do you include C ++ files from the / Library / Framework folder in MAC
Requires a file on the top-level directory
Powershell gets the top parent folder
Recommend
-
52
You can set a file or folder to be “ignored” by Dropbox. This allows you to organize files and folders in the Dropbox folder on your computer without storing them on dropbox.com or on the Dropbox server at all. Onc...
-
8
Change Safari’s save folder to prevent lost downloads [Pro tip]
-
5
Open folder or file with Sublime Text from Finder toolbar Post author:herrkaefer Post published:01/19/2020...
-
9
Find the file in the folder with a specific ruby end advertisements I have many files in the folder, such as mp4, mov, avi files. But I have...
-
3
Automating File/Folder StructuresMitchell Clark, writing for The Verge: Dropbox is adding a feature th...
-
11
Do you have a problem when you can’t delete a folder or several files from your PC or laptop? Does Windows show you an “access denied” error? It can happen due to various causes when you delete, edit or overwrite files. Read this article to f...
-
4
How to avoid creating a new file by counting the number of files in a folder advertisements I have a software on my computer whe...
-
4
How do I get data from the file to the Documents folder advertisements i am new to xcode and objective c.
-
8
-
3
Silent change added to File Explorer in Windows 11 File Explorer is getting more and more refinements in Windows 11, and while everybody is waiting for tabs to finally go live, the latest Windows In...
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK