Open epanagio opened 8 years ago
What exactly is the script's output. When you click upload, then the dialog.htm file runs dialog.js . Dialog.htm has path to codeigniter's controller which actually performs upload. Here is my block
<form class="form-inline" id="upl" name="upl" action="http://bimpra.tk/uploader/upload/{#jbimages_dlg.lang_id}" method="post" enctype="multipart/form-data" target="upload_target" onsubmit="jbImagesDialog.inProgress();">
So, make sure correct controller is being called.
Thanks for taking time to help me. I changed my action part of the form to be: action="http://127.0.0.1/kingston-latest/mysavedimages/{#jbimages_dlg.lang_id}" the folder exists and it is set to 777 but still I cannot upload a small image.
By my action URL, I have specified path to codeigniter's controller. If you check this github repo https://github.com/vikdiesel/justboil.me
In this repo, the uploader module is https://github.com/vikdiesel/justboil.me/blob/master/ci/application/controllers/uploader.php
So, my point is that you can take above code as base to form your application.
Before you do anything, make sure that file uploads are supported on your server. From phpinfo() you can gather lot of information like whether:
file_uploads is On Check location of upload_tmp_dir and make sure it is writable by web server user. In short try using some other file upload script and see if that can upload files properly.
On Wed, Dec 16, 2015 at 7:03 AM, epanagio notifications@github.com wrote:
Thanks for taking time to help me. I changed my action part of the form to be: action=" http://127.0.0.1/kingston-latest/mysavedimages/{#jbimages_dlg.lang_id}" the folder exists and it is set to 777 but still I cannot upload a small image.
— Reply to this email directly or view it on GitHub https://github.com/vikdiesel/justboil.me/issues/14#issuecomment-164956179 .
Regards,
Sandeep Kumar vishwakarma09.github.io
After creating the folder with 777 permission, I try to upload a small image and I receive "Upload in progress..." but it never uploads the image. Finally I receive
"This is taking longer than usual. An error may have occurred. View script's output"
but the script's output is not useful. What am I missing?