2010-11-22 4 views
2

Ich hatte dieses Plugin schon einmal benutzt, aber jetzt, wenn ich es für ein anderes Projekt verwenden möchte, funktioniert es einfach nicht, wo ich falsch liege.Warum funktioniert uploadify (jQuery Plugin) nicht? Was ist falsch an meinem Code?

hier ist der Code, den ich in meinem root bin index.php

<html> 
<head> 
<link href="/uploadify/uploadify.css" type="text/css" rel="stylesheet" /> 
<script type="text/javascript" src="/uploadify/jquery-1.4.2.min.js"></script> 
<script type="text/javascript" src="/uploadify/swfobject.js"></script> 
<script type="text/javascript" src="/uploadify/jquery.uploadify.v2.1.4.min.js"></script> 
<script type="text/javascript"> 
    $(document).ready(function() { 
    $('#file_upload').uploadify({ 
     'uploader' : '/uploadify/uploadify.swf', 
     'script' : '/uploadify/uploadify.php', 
     'cancelImg' : '/uploadify/cancel.png', 
     'folder' : '/uploads', 
     'auto'  : true 
    }); 
    }); 
</script> 
</head> 
<body> 
<input id="file_upload" name="file_upload" type="file" /> 
</body> 
</html> 

und gemäß dem ich habe die folgende Datei hier im Uploadify Ordner im Stammverzeichnis setzte Anweisungsdatei wird die Screenshot von theuploadify Verzeichnis .

alt text

wo falsch gehe ich?

Wenn Sie die Dokumentation des Plugins hier überprüfen möchten, ist der Pfad.

http://www.uploadify.com/documentation/

+0

Was funktioniert nicht? –

+0

Sind die Ordner/Uploads vorhanden? – switz

+0

Die normale HTML-Datei-Upload-Schaltfläche sollte durch die Uploadify-Schaltfläche ersetzt werden, die nicht ersetzt wird. –

Antwort

2

das Problem war der Schrägstrich vor dem Pfad.

Verwandte Themen