Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Real-World Web Development with .NET 9

You're reading from   Real-World Web Development with .NET 9 Build websites and services using mature and proven ASP.NET Core MVC, Web API, and Umbraco CMS

Arrow left icon
Product type Paperback
Published in Dec 2024
Publisher Packt
ISBN-13 9781835880388
Length
Edition 1st Edition
Languages
Arrow right icon
Toc

Table of Contents (16) Chapters Close

Real-World Web Development with .NET 9: Build websites and services using mature and proven ASP.NET Core MVC, Web API, and Umbraco CMS
1 Introducing Web Development Using Controllers FREE CHAPTER 2 Building Websites Using ASP.NET Core MVC 3 Model Binding, Validation, and Data Using EF Core 4 Building and Localizing Web User Interfaces 5 Authentication and Authorization 6 Performance Optimization Using Caching 7 Web User Interface Testing Using Playwright 8 Configuring and Containerizing ASP.NET Core Projects 9 Building Web Services Using ASP.NET Core Web API 10 Building Web Services Using ASP.NET Core OData 11 Building Web Services Using FastEndpoints 12 Web Service Integration Testing 13 Web Content Management Using Umbraco 14 Customizing and Extending Umbraco 15 Epilogue

Working with media

Now let's upload some images for use with our content:

  1. In the top navigation menu, click Media.
  2. Click Create, and then Image, enter the name Categories, click the Click to upload icon, and browse to select categories.jpeg.

    All the category images are downloadable from the following link: https://github.com/markjprice/web-dev-net9/tree/main/code/images/Categories.

  3. Repeat for the following names and files:
    • Beverages: category1.jpeg
    • Condiments: category2.jpeg
    • Confections: category3.jpeg
    • Dairy Products: category4.jpeg
    • Grains/Cereals: category5.jpeg
    • Meat/Poultry: category6.jpeg
    • Produce: category7.jpeg
    • Seafood: category8.jpeg
  4. Navigate to Content and select Home.
  5. Edit the Body | Main Content, and add the Categories image into the rich text editor, as shown in Figure 13.18:

    Figure 13.18: Adding an image to the rich text editor
  6. View the home page on the website.
  7. Right-click the image, select Open image in new tab, and note the path, as shown in Figure 13.19:

    Figure 13.19: The path to an uploaded media file
lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image