Welcome Guest, Not a member yet? Register   Sign In
Problem with Uploadify
#1

[eluser]DW@Van [/eluser]
Hi everyone,

After reading couple posts on the forum, I decided to give Uploadify a go. I have got file uploaded with File Upload Library working on local server(XAMPP 1.7.1). Once I upload it to the server(MediaTemple PHP 5.2.6), the uploadify.swf loads but the button(flash) doesn't show.
(I am sure swf file loaded from FireBug and Google Chrome Developer Tool.)

Views Code Partial
Code:
<div>
    <label>Homepage File: </label>
    &lt;?php echo form_input('homepage_file_text', set_value('homepage_file_text', $profile->homepage_file), 'id="homepage_file_text" disabled="true"'); ?&gt;
    &lt;?php echo form_hidden('homepage_file', set_value('homepage_file', $profile->homepage_file)); ?&gt;
    &lt;?php echo form_upload('userfile', '', 'id="uploadify"'); ?&gt;
</div>

Javescript Code
Code:
[removed]
    $(function() {
        $('#uploadify').uploadify({
            'fileDataName' : 'userfile',
            'uploader' : "&lt;?php echo js_path('admin/uploadify.swf'); ?&gt;",
            'script' : "&lt;?php echo site_url('admin/web_profile/save_file'); ?&gt;",
            'cancelImg' : "&lt;?php echo image_path('cancel.png'); ?&gt;",
            'folder' : "&lt;?php echo APPPATH . "uploads" ?&gt;",
            'auto' : true,
            'multi' : false,
            'sizeLimit' : '5000000',
            'onError' : function (event, queueID, fileObj, errorObj) {
                alert(errorObj.type + ': ' + errorObj.info);
                return true;
            },
            'onComplete' : function (event, queueID, fileObj, response, data) {
                alert("The selected " + response + " is uploaded.");
                $('input[name="homepage_file"]').val(response);
                $('#homepage_file_text').val(response);
                return true;
            }
        });
    });
[removed]

I have used philsturgeon's amazing Asset, Template, and Module Separation libraries.

Please help. I can't find anything after one day of searching.
#2

[eluser]pickupman[/eluser]
I know it might be crazy to ask, but do you have a flash/ad blocker plugin enabled. I've run into this before. In firebug, when you hover the element in HTML tab, is the thumbnail shown?
#3

[eluser]DW@Van [/eluser]
No, thumbnail is not shown. I don't think I have flash/ad blocker installed on FireFox, but let me disable the ad blocker in Google Chrome. Thanks for the tip, pickupman!




Theme © iAndrew 2016 - Forum software by © MyBB