• 06-07-2015, 16:38:25
    #1


    arkadaşlar selamün aleyküm ilan sitemde fotolar yüklenmiyo böyle hata veriyo bu foto yükleme kodunu başka siteden aldım yardım edinn


    bu resimdeki ise o sayfayı çağırma kodu



    bu kod resim ekleme kodu

    <!DOCTYPE HTML>
    <html lang="en">
    <head>
    <meta charset="utf-8">
    <title>Dosya Yükleyicisi</title>
    <meta name="description" content="">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link rel="stylesheet" href="http://www.ilanimo.com/xuploadx/css/bootstrap.min.css">
    <link rel="stylesheet" href="http://www.ilanimo.com/xuploadx/css/style.css">
    <link rel="stylesheet" href="http://www.ilanimo.com/xuploadx/css/blueimp-gallery.min.css">
    <link rel="stylesheet" href="http://www.ilanimo.com/xuploadx/css/jquery.fileupload.css">
    <link rel="stylesheet" href="http://www.ilanimo.com/xuploadx/css/jquery.fileupload-ui.css">
    </head>
    <body>
    
    <div class="container">
        <form id="fileupload" action="" method="POST" enctype="multipart/form-data">
            <!-- The fileupload-buttonbar contains buttons to add/delete files and start/cancel the upload -->
            <div class="row fileupload-buttonbar" style="">
                <div class="col-lg-7">
                    <!-- The fileinput-button span is used to style the file input field as button -->
                    <span class="btn btn-success fileinput-button">
                        <span>Fotoğraf ekle...</span>
                        <input type="file" name="resim[]" multiple  >
                    </span>
                    <button type="submit" class="btn btn-primary start hidden">
                        <span>Yüklemeyi başlat</span>
                    </button>
                    <button type="reset" class="btn btn-warning cancel hidden">
                        <span>Vazgeç</span>
                    </button>
                    <button type="button" class="btn btn-danger delete hidden">
                        <span>Sil</span>
                    </button>
                    <input type="checkbox" class="toggle hidden">
                    <!-- The global file processing state -->
                    <span class="fileupload-process"></span>
                </div>
                <!-- The global progress state -->
                <div class="col-lg-5 fileupload-progress fade">
                    <!-- The global progress bar -->
                    <div class="progress progress-striped active" role="progressbar" aria-valuemin="0" aria-valuemax="100">
                        <div class="progress-bar progress-bar-success" style="width:0%;"></div>
                    </div>
                    <!-- The extended global progress state -->
                    <div class="progress-extended">&nbsp;</div>
                </div>
            </div>
            <!-- The table listing the files available for upload/download -->
            <table role="presentation" class="table table-striped">
                <tbody class="files">
                            </tbody>
            </table>
            <input type="hidden" id="ilanid" name="ilan[ilanid]" value="66346">
            <input type="hidden" id="token" name="token" value="NFRE3rWc5Z4qAraKHlIOQt4L1kVRVyIJdAnh1kt7kyxU0HFH2ovTSAETVALQ9uzm4XD6h7dCGKxGrcnuBTntt2npD9fMDP9IMNO4U1GAMdgdqEI1x6v18SqL2GxFvGni">
            
                </form>
    </div>
    <!-- The blueimp Gallery widget -->
    <div id="blueimp-gallery" class="blueimp-gallery blueimp-gallery-controls" data-filter=":even">
        <div class="slides"></div>
        <h3 class="title"></h3>
        <a class="prev">‹</a>
        <a class="next">›</a>
        <a class="close">×</a>
        <a class="play-pause"></a>
        <ol class="indicator"></ol>
    </div>
    <!-- The template to display files available for upload -->
    <script id="template-upload" type="text/x-tmpl">
    {% for (var i=0, file; file=o.files[i]; i++) { %}
        <tr class="template-upload fade">
            <td>
                <span class="preview"></span>
            </td>
            <td>
                <p class="name">{%=file.name%}</p>
                <strong class="error text-danger"></strong>
            </td>
            <td>
                <p class="size">İşleniyor...</p>
                <div class="progress progress-striped active" role="progressbar" aria-valuemin="0" aria-valuemax="100" aria-valuenow="0"><div class="progress-bar progress-bar-success" style="width:0%;"></div></div>
            </td>
            <td>
                {% if (!i && !o.options.autoUpload) { %}
                    <button class="btn btn-primary start" disabled>
                        <span>Başlat</span>
                    </button>
                {% } %}
                {% if (!i) { %}
                    <button class="btn btn-warning cancel">
                        <span>Vazgeç</span>
                    </button>
                {% } %}
            </td>
        </tr>
    {% } %}
    </script>
    <!-- The template to display files available for download -->
    <script id="template-download" type="text/x-tmpl">
    {% for (var i=0, file; file=o.files[i]; i++) { %}
        <tr class="template-download fade">
            <td>
                <span class="preview">
                    {% if (file.thumbnailUrl) { %}
                        <a href="{%=file.url%}" title="{%=file.name%}" download="{%=file.name%}" data-gallery><img src="{%=file.thumbnailUrl%}"></a>
                    {% } %}
                </span>
            </td>
            <td>
                <p id="vitrin-{%=file.name%}" class="name vitrin">
                                <button type="button" onclick="vitrin('66346', '{%=file.name%}')" class="btn btn-default">
                                	<span>Vitrin Fotoğrafı Yap</span>
                                </button>
                            </p>
                {% if (file.error) { %}
                    <div><span class="label label-danger">Hata</span> {%=file.error%}</div>
                {% } %}
            </td>
            <td>
                {% if (file.deleteUrl) { %}
                    <button class="btn btn-danger delete" data-type="{%=file.deleteType%}" data-url="{%=file.deleteUrl%}"{% if (file.deleteWithCredentials) { %} data-xhr-fields='{"withCredentials":true}'{% } %}>
                        <span>Sil</span>
                    </button>
                {% } else { %}
                    <button class="btn btn-warning cancel">
                        <span>Vazgeç</span>
                    </button>
                {% } %}
            </td>
        </tr>
    {% } %}
    </script>
    <script src="http://www.ilanimo.com/xuploadx/js/jquery.min.js"></script>
    <script src="http://www.ilanimo.com/xuploadx/js/jquery.ui.widget.js"></script>
    <script src="http://www.ilanimo.com/xuploadx/js/tmpl.min.js"></script>
    <script src="http://www.ilanimo.com/xuploadx/js/load-image.all.min.js"></script>
    <script src="http://www.ilanimo.com/xuploadx/js/canvas-to-blob.min.js"></script>
    <script src="http://www.ilanimo.com/xuploadx/js/jquery.blueimp-gallery.min.js"></script>
    <script src="http://www.ilanimo.com/xuploadx/js/jquery.iframe-transport.js"></script>
    <script src="http://www.ilanimo.com/xuploadx/js/jquery.fileupload.js"></script>
    <script src="http://www.ilanimo.com/xuploadx/js/jquery.fileupload-process.js"></script>
    <script src="http://www.ilanimo.com/xuploadx/js/jquery.fileupload-image.js"></script>
    <script src="http://www.ilanimo.com/xuploadx/js/jquery.fileupload-validate.js"></script>
    <script src="http://www.ilanimo.com/xuploadx/js/jquery.fileupload-ui.js"></script>
    <script src="http://www.ilanimo.com/xuploadx/js/main.js"></script>
    
    </body> 
    </html>
  • 06-07-2015, 17:02:29
    #2
    İyi günler, kaynak kodu görmeden hata hakkında yorum yapmak doğru olmaz. İlk mesajınıza kaynak kodu eklerseniz daha hızlı ve doğru cevabı elde edebilirsiniz.
  • 07-07-2015, 12:41:33
    #3
    UgurOzturk adlı üyeden alıntı: mesajı görüntüle
    İyi günler, kaynak kodu görmeden hata hakkında yorum yapmak doğru olmaz. İlk mesajınıza kaynak kodu eklerseniz daha hızlı ve doğru cevabı elde edebilirsiniz.
    ekledim hocam
  • 07-07-2015, 15:56:00
    #4
    Sorunu göremedim malesef. Bir tavsiye olarak, script bağdaştırmalarını <head> tagının içerisine koyarsan daha iyi olacaktır. Mvc projesi yazarken sebebini net olarak tespit edemesem de head tagının dışında kullanılan scriptlerin çakıldığını çok gördüm.
  • 07-07-2015, 17:14:07
    #5
    UgurOzturk adlı üyeden alıntı: mesajı görüntüle
    Sorunu göremedim malesef. Bir tavsiye olarak, script bağdaştırmalarını <head> tagının içerisine koyarsan daha iyi olacaktır. Mvc projesi yazarken sebebini net olarak tespit edemesem de head tagının dışında kullanılan scriptlerin çakıldığını çok gördüm.
    hocam peki neden yapmıyor olabilir sorun yoksa acaba resim klasörü falan mı hatalı ?