Do you have to write custom php with uploadify?

I'm using uploadify and on my local machine the uploading works fine, but when I push my application out to our development server, the files don't get uploaded at all even though I get the message saying that the upload has completed / was successful. It also restarts my application and kicks me out to my login page. In my research I see examples of people who have had a similar problem, but in those cases they are using custom .php code which I was not under the impression that I needed to do that especially since it works fine on my local machine with out it. Thought? Links?

my IHttpHandler class
public class Upload : IHttpHandler, IReadOnlySessionState
    {

        /// <summary>**********************************
        /// ProcessRequest                            *
        /// </summary>**********************************
        public void ProcessRequest(HttpContext context)
        {
            string UploadPath = "InspectionImagesNew\\";
            string strPathToSave = "BEFORE PATH IS APPLIED";

            try
            {
                //context.Response.Write("HELLO");
                HttpPostedFile fileToUpload = context.Request.Files["Filedata"];

                //WORKS LOCALLY ON MY MACHINE***************************************************************************************************************
                strPathToSave = HttpContext.Current.Server.MapPath("InspectionImagesNew//") + "TEMP_" + context.Session["VIN"].ToString() + "/" + fileToUpload.FileName;
                //******************************************************************************************************************************************

                //System.IO.File.WriteAllText(@"C:\test.txt", strPathToSave);
                try
                {
                    context.Session["ERROR_FROM_ASHX_CODE"] = strPathToSave;
                    fileToUpload.SaveAs(strPathToSave);
                }
                catch (Exception ex)
                {
                }
            }
            catch (Exception ex)
            {
                context.Response.ContentType = "text/plain";
                context.Response.Write(ex.Message.ToString());
                context.Session["ERROR_FROM_ASHX_CODE"] = ex.Message.ToString();
            }
        }

        public bool IsReusable
        {
            get
            {
                return false;
            }
        }
    }

Open in new window


my jQuery
        $(document).ready(function () {
            $("#<%=FileUpload1.ClientID %>").uploadify(
            {
                'swf': 'Scripts/uploadify.swf',
                'uploader': 'Upload.ashx',
                'auto': true,
                'multi': true,
                'buttonText': 'Select File(s)',
                //'onQueueComplete': function (queueData) {
                //    alert(queueData.uploadsSuccessful + ' files were successfully uploaded.');
                //}
                'onQueueComplete': function (event, queueID, fileObj, response, data) {
                    $.ajax({
                        type: "POST",
                        url: "StockPhotos.aspx/CopyAndRename",
                        data: "{}",
                        contentType: "application/json; charset=utf-8",
                        dataType: "json"
                    });
                    //alert('This alert ensures onComplete is being called correctly');
                    //alert(response);
                    //alert(response.responseText);
                },
                'onUploadError': function (xhr, err) {
                    alert('responseText:' + xhr.responseText);
                }
            });
        });
    </script>

Open in new window

LVL 1
Michael SterlingWeb Applications DeveloperAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Ray PaseurCommented:
Uploadify has no PHP dependency.
Michael SterlingWeb Applications DeveloperAuthor Commented:
I didn't think so. So its optional for if you want to do "extra stuff", yes?
Ray PaseurCommented:
Yes, PHP is a server-side product.  It can be used to do any general-purpose scripting.
http://php.net/manual/en/intro-whatcando.php

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Michael SterlingWeb Applications DeveloperAuthor Commented:
Thank you.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
JavaScript

From novice to tech pro — start learning today.