Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8010839
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T18:51:33+00:00 2026-06-04T18:51:33+00:00

i am developing an ASP.NET MVC application and I need a per-user folder with

  • 0

i am developing an ASP.NET MVC application and I need a per-user folder with images (including subfolders). I am looking for an easy way to allow managment of such image galerries (folder upload, single image upload, delete, display).

The galery itself isnt the key function of the application and doesnt have to be fancy (no need for comments etc.)

Right now, I am thinking about FTP account for each user. However,

  1. Is there a way to set size limits from c# code to ftp folder?
  2. How would “normal user” upload his image folders? Is there any free plugin wrapping up FTP picture managment?

Or is there a more simpler way?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-04T18:51:35+00:00Added an answer on June 4, 2026 at 6:51 pm

    For the size of a folder, use code

    Vb.Net

    Dim Klasor As DirectoryInfo = New DirectoryInfo(Server.MapPath("~/Content"))
    Dim Boyut As Decimal
    For Each dr In Klasor.GetFiles
       Boyut += dr.Length
    Next
    

    Vb to C# 🙁

    DirectoryInfo Klasor = new DirectoryInfo(Server.MapPath("~/Content"));
        decimal Boyut = default(decimal);
        foreach (object dr_loopVariable in Klasor.GetFiles) {
            dr = dr_loopVariable;
            Boyut += dr.Length;
        }
    

    Close access to folders on http, Use authorizations membership. Query only accept members own folder. Use authorization to read and write operations..

    Sample read : Vb.Net

        Function FileReturn() As FileResult
                Dim fi As New FileInfo(Server.MapPath("~/UserFiles/{UserID}/me.png"))
                Return File(fi.OpenRead, "image/png") 
    //and for download Return File(fi.OpenRead, "image/png").FileDownloadName("me.png download") or Return File(fi.OpenRead, "image/png","meee")
            End Function
    

    Convert C# :

    public FileResult FileReturn()
    {
        FileInfo fi = new FileInfo(Server.MapPath("~/UserFiles/{UserID}/me.png"));
        return File(fi.OpenRead, "image/png");
        //and for download Return File(fi.OpenRead, "image/png").FileDownloadName("me.png download") or Return File(fi.OpenRead, "image/png","meee")
    }
    

    I’m sorry for vb.net code

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have been developing an asp.net mvc application where i need to make large
I am developing an application in asp.net mvc where i need to have Chat
I'm developing an ASP.NET MVC application that will send the user a confirmation email.
I'm developing an web application using asp.net mvc, and i need to do a
I am developing an asp.net mvc application in which I keep user credentials in
I am developing an asp.net mvc application and have created my custom user database
I'm developing an ASP.NET MVC application on IIS7 and I need to rewrite requests
I'm developing an ASP.NET MVC 3 Web Application. I need to catch any web
I am developing an ASP .Net MVC application and on my dev machine, the
We are developing an ASP.NET MVC Application that currently uses it's own database ApplicationData

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.