-1

I want to use Agile Uploader to resize images before upload on my server.

But when I try to upload image on server it does nothing... I mean that there is no image in POST data. I've checked POST and there is no items at all. What am I doing wrong?

Here is my code:

<html>
<head>
    <script type="text/javascript" src="/static/js/jquery1.6.4.min.js"></script>
    <script src="/static/js/jquery.flash.min.js" type="text/javascript"></script>
    <link type="text/css" rel="stylesheet" href="/static/css/unrelated.css" />
    <script src="/static/js/agile-uploader-3.0.js" type="text/javascript"></script>
    <link type="text/css" rel="stylesheet" href="/static/css/agile-uploader.css" />
</head>
<body>

<form action="/test" method="post" id="singularDemo" enctype="multipart/form-data">
    <div id="single"></div>
</form>

<a href="#" onClick="document.getElementById('agileUploaderSWF').submit();">Submit</a>
    <script type="text/javascript">
        $('#single').agileUploaderSingle({
            formId:'singularDemo',
            progressBarColor:'#3b5998',
            flashVars:{
                firebug:true,
                form_action:'/test',                
            }
        });
    </script>

</body>
</html>

Most code part taken from their demo.

Thanks in advance!

Vitalii Ponomar
  • 10,686
  • 20
  • 60
  • 88

1 Answers1

0

you have to edit the process.php file, where you'll define the remote upload folder! and then modify the form_action in: "form_action: process.php"

Aliaksei Kliuchnikau
  • 13,589
  • 4
  • 59
  • 72