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

  • Home
  • SEARCH
  • 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 3236364
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T17:36:48+00:00 2026-05-17T17:36:48+00:00

When I use uploadify to upload photos to the server I use the following

  • 0

When I use uploadify to upload photos to the server I use the following script (The script is placed in the Photo.aspx (this is the view of the UploadController and the Photo action)):

    <script type="text/javascript">
    $(document).ready(function () {
        $("#fileInput").uploadify({
            uploader: "../../Images/uploadify.swf",
            script: "../../Upload/Upload.ashx",
            cancelImg: "../../Images/cancel.png",
            auto: true,
            multi: true,
            folder: "Folder/Photos",
            onError: function (a, b, c, d) {
                if (d.status == 404)
                    alert("Could not find upload script. Use a path relative to: bla ");
                else if (d.type === "HTTP")
                    alert("error " + d.type + ": " + d.info);
                else if (d.type === "File Size")
                    alert(c.name + " " + d.type + " Limit: " + Math.round(d.sizeLimit / 1024) + "KB");
                else
                    alert("error " + d.type + ": " + d.text);
            }
        });
    });  
</script>

Found here

Everything works fine until I’ve selected the files and the script starts uploading. Error HTTP: 404. This means, it doesn’t find the script file. I tried everything:
script: “../../Upload.ashx”,
script: “../Upload.ashx”,
script: “Upload.ashx”, etc..

The Upload.ashx is placed in Views/Upload/Upload.ashx (This folder also contains the Photo.aspx from the UploadController which contains the uploadify script). The scripts are loaded at the end of my page. I don’t understand why uploadify can’t find the script when I use the ‘script: “Upload.ashx”‘ property. Can someone help with this?

  • 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-17T17:36:49+00:00Added an answer on May 17, 2026 at 5:36 pm

    The reason why you are always getting a 404 is because you should never link directly to a view. Create an action method in a controller that accepts a HttpPostedFileBase file. Here’s an article from Phil Haack: http://haacked.com/archive/2010/07/16/uploading-files-with-aspnetmvc.aspx

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

Sidebar

Related Questions

I'm using jquery and uploadify to upload photos to server. After uploading photos they
I am attempting to use the following code to upload a photo to Facebook
I'm trying to use uploadify to upload images to a remote server. I've have
I tried to use this very simple script for uploading a file to my
I am using a script to upload photo (written by my own) which allow
Hy, i use uploadify to upload some images, after i display all the images
I use uploadify 3.0.0 for uploading files. This uploadify use swf for sending ajax
I'm using Uploadify to upload some images with ASP.NET. I use Response.WriteFile() in ASP.NET
I use rsync to synchronize files to Windows clients in a server agnostic way.
I'm trying to upload images with Uploadify but I run into IO error. I

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.