Search
 
SCRIPT & CODE EXAMPLE
 

CSHARP

Get all images from folder asp.net

public IActionResult OnGet()
{
	var provider = new PhysicalFileProvider(webHostEnvironment.WebRootPath);
	var contents = provider.GetDirectoryContents(Path.Combine("uploadedfiles", "images"));
	var objFiles = contents.OrderBy(m => m.LastModified);
   
	return new JsonResult(objFiles);
}
Comment

PREVIOUS NEXT
Code Example
Csharp :: How to use the protected keyword in C# 
Csharp :: list of function in c# 
Csharp :: how to sign in with your unity id in unity hub 
Csharp :: c# validate xml 
Csharp :: find all factors of a given number 
Csharp :: read all lines split C# 
Csharp :: c# divide two integers get float 
Csharp :: c# remove invalid directory characters 
Csharp :: c# jagged array initialization 
Csharp :: stock span problem c# using class 
Csharp :: c# usermanager update user 
Csharp :: c# open access database mdb 
Csharp :: regular expression alphanumeric dash space c# 
Csharp :: unity inspector draw line 
Csharp :: how to make randomizer c# 
Csharp :: get script directory c# 
Csharp :: irrrtate throught an matrix c# 
Csharp :: game maker transparent 
Csharp :: Create a button in unity to show ad 
Csharp :: c# mongodb count documents 
Csharp :: drawing default serializedproperty unity 
Csharp :: visual studio console.writeline not showing in output window 
Csharp :: C# how to know if number is even or odd 
Csharp :: c# get out of for loop 
Csharp :: faucongz 
Csharp :: c# copy all files in directory and subdirectories 
Csharp :: how to check to see if the keyboard buttons are pressed in unity 
Csharp :: copy-the-entire-contents-of-a-directory-in-c-sharp 
Csharp :: c# 2d arrays 
Csharp :: c# distinct comparer multiple properties 
ADD CONTENT
Topic
Content
Source link
Name
7+1 =