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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T13:32:37+00:00 2026-05-27T13:32:37+00:00

I am implementing Uploadify to upload files to a server which works perfectly. but

  • 0

I am implementing Uploadify to upload files to a server which works perfectly.
but i have come into some problems when i want to write the response to the a model in my view…

Lets say i have a customer model with a headshot field that i want to populate with the response from the Uploadify ‘oncomplete’ event…

whats the best practice to do something like this.. I’m quite new to web dev so i’ve found myself very lost trying to figure this out..

cheers in advance for any help

  • 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-27T13:32:38+00:00Added an answer on May 27, 2026 at 1:32 pm

    If I am understanding you correctly, you want to populate the model from the ‘successful’ response from uploadify callback?

    What I usually do is:

    • Upload the image using the uploadify plugin
    • I have separate controller which uploadify talks to
    • Save it, resize it, and maybe do other adjustments to the actual image itself on the server
    • The server will return either a success message or failed message
    • If a failed message is returned, the server returns the failed message, together with the error
    • If a success message is returned, the server will return the success message together with the path of the image
    • On the callback I will use jQuery to populate my models hidden field with the path of the image.

    If you want an example, or if you have any other questions, just let me know.

    Thanks

    Tyrone

    Edited ———-

    Lets say I have a view which contains the following

     @Html.HiddenFor(model => model.Media.Path, new { @id = "image-path" });
     <input type="file" name="imageFile" id="file-upload" />
    

    My script contains the following

    $('#file-upload').uploadify({
    
        'uploader': '/Scripts/Admin/uploadify/uploadify.swf',
    
        'script': '/Admin/Media/UploadImage/',
    
        'cancelImg': '/uploadify/cancel.png',
    
        'auto': true,
    
        'fileExt': '*.jpg;*.gif;*.png;*.pdf',
    
        'sizeLimit': 202400000,
    
        'onComplete': function (event, ID, fileObj, response, data) {
            $("#image-path").val(response);
         }
    
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Implementing the very first scala example I ran into some problems probably tipical for
I'm implementing a file upload feature, and want to pass the uploaded file from
When implementing Quicksort, one of the things you have to do is to choose
Implementing a custom VM and I've come to use registers (these will store pointers
When implementing a Matrix construct using arrays, which would be more efficient? Using a
Im implementing a pool billiard game in Java and it all works fine. It
I have an intranet application, which for many years has made use of the
Im implementing NFS and almoste done but the RFC section 3.3.8 says this in
While implementing my own IFilter I found that most likely some consumers will require
I'm looking at implementing a Facebook-style thumbnail creator using ASP.Net MVC but haven't a

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.