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 1000049
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T07:26:59+00:00 2026-05-16T07:26:59+00:00

I’m trying to find a way to implement file manager functionality in an mvc

  • 0

I’m trying to find a way to implement file manager functionality in an mvc 2 application. I’ve looked at jquery etc for ways of doing this. I have been able to implement a simple upload/download functionality with just an input file button and so on, and I have also tried out jquery File Tree (http://abeautifulsite.net/blog/2008/03/jquery-file-tree/), but I have no idea how to connect the file tree functionality with the download, upload and delete functionality I want. Even though the file tree works, all it does if you click on a file is to show an alert with the name of the file. I don’t know how to hook into this.

I would like something like the tree to the left with folders, and then the files to the right, with possibilites to select a file and then download or delete. The upload functionality I guess would be no problem, since I could just have that separate, and then reload the page so that the file tree updates. Although ideally I would have liked it to stay at the same selection.

Anyone have any ideas how to do this?

If not (or anyway) I would also very much appreciate if anyone knows of an open source file manager with these features (including upload/download/delete) in ajax/jquery or the like that is actually compatible with mvc2. The reason is I don’t want to mess up the mvc application with web forms versions, which I do know of.

EDIT:

Here’s the code that calls the fileTree function:

<script type="text/javascript">
    $(document).ready(function () {

        $('#JQueryFTD_Demo').fileTree({

            script: 'Home/JqueryFileTree',
            expandSpeed: 1000,
            collapseSpeed: 1000,
            multiFolder: true
        }, function (file) {
            alert(file); //This shows the name of the file if you click it
        });
    });
</script>

I can’t read the fileTree funcion well enought to get where the file name is coming from (how it gets into the variable “file” here), and how I could hook into that to do different things with the file, such as deleting, downloading etc. Again, I’m very new to jquery so this is a bit above my head, I just need a file manager function that does these things and is compatible with the MVC way of thinking (i.e. not web forms based), so any other suggestions for “pre-baked code” would be fine, I don’t have to understand it, just use it, and then I can learn jquery at my own pace :-).

  • 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-05-16T07:27:00+00:00Added an answer on May 16, 2026 at 7:27 am

    If you are able to alert the selected filename you could send an AJAX request to a controller action passing this filename so that the server can take care of deleting the file. As far as downloading is concerned you could use a regular hyperlink to a controller action that will write the file contents in the response stream.

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

Sidebar

Related Questions

I am trying to render a haml file in a javascript response like so:
I have a .ini file as follows: [playlist] numberofentries=2 File1=http://87.230.82.17:80 Title1=(#1 - 365/1400) Example
I am trying to understand how to use SyndicationItem to display feed which is
Basically, what I'm trying to create is a page of div tags, each has
link Im having trouble converting the html entites into html characters, (&# 8217;) i
I have just tried to save a simple *.rtf file with some websites and
I have a string like this: La Torre Eiffel paragonata all&#8217;Everest What PHP function
I am reading a book about Javascript and jQuery and using one of the
I am doing a simple coin flipping experiment for class that involves flipping a
I want use html5's new tag to play a wav file (currently only supported

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.