image uploader in post free ad page is not working in osclass - fine-uploader

I am new to Osclass. I have purchased shopclass theme. we are using jquery fine uploader plugin for image upload. when we are uploading image it shows error.
"[FineUploader 3.8.0] Error when attempting to parse xhr response text (Unexpected token < in JSON at position 61)"-this is the error shown in console.
The image is uploaded into temp folder but it does not shown in post and also shows uploading error in user end.Please help me to solve this problem.

Related

Download response for S3 asset?

I'm trying to generate a download response by:
return response()->download('full URL to my asset on S3 via cloudfront');
But I'm getting an error stating that the file does not exist.
I've checked the path, and it loads fine in a browser window.
How can I generate a download response for my asset on S3 via cloudfront?

TileLayerPreview:Failed to load resource: the server responded with a status of 400 (Bad Request)

I'm using Geoserver 2.13.0 created TileLayer with Point Geometry. While previewing tileLayer getting Error. Also inside gwc directory tile data is there. Everything look fine. But don't know why getting on browser console 400(Bad Request) Error.
Network Url of Bad Request Error:
http://localhost:8080/geoserver/gwc/service/wmts?layer=CacheTestWS%3AcacheTestGeometria&style=&tilematrixset=EPSG%3A4326&Service=WMTS&Request=GetTile&Version=1.0.0&Format=image%2Fpng&TileMatrix=EPSG%3A4326%3A8&TileCol=89&TileRow=77
If we see in Success request Network Request Type is coming png but in Error case showing text/html.
Below are the some of relvant images.
Any help is very appriciate.

Upload file to Amazon S3 failing only first time

I am trying to upload files to amazon s3 bucket and its failing only first time. After first time, files upload successfully. Tried many ways can’t fix it. Please help.
The error I am getting is as follows:
Exception 'ErrorException' with message 'S3::inputFile(): Unable to open input file: C:\inetpub\temp\PHPTemp\php6C81.tmp' in C:\inetpub\websites\bizitask.com\app\libraries\S3.php:355
I am using an ajax form to upload the file and code in controller to upload the file is as follows:
if ($s3->putObjectFile(Input::file('file')->getRealPath(), 'bizitask', 'files/businesses/'.$business_id.'/'.$file_name, S3::ACL_PUBLIC_READ)) { return Redirect::to('customers/businesses/' . $business_id)->with('success', 'success'); }
I am using laravel 4.2

blueimp jQuery-File-Upload not working for laravel 5

i am using , https://github.com/blueimp/jQuery-File-Upload plugin for image upload using ajax call in laravel 5. i also refered article http://peterjolson.com/using-laravel-and-jquery-file-upload/. but i am getting the following error error
GET http://localhost:8000/...../server/php/ 500 (Internal
Server Error)
when i use https://github.com/blueimp/jQuery-File-Upload/wiki/Basic-plugin i get the same error. Can anyone help with this or please suggest any working image uploader with ajax call for laravel 5
There is a main.js file, you need to adjust the url there according to the path you store it:
url: '../../uploadimage/server/php/'

Fine Uploader Response Error OnComplete In IE 10

Manual Uploader Working Fine with All Browser expect IE 10, i am not getting correct Response From the Server it is Showing on onComplete "No Valid message Received from Loaded iframe For i frame Name 1_97604 cec......".
File are uploading into the cloudbees server but not getting correct Response From the server.
In case of Other browser i am getting Response.success = true, but For IE 10 its undefined, how to handle this error. Please help me Out for this.
Regards
Yogesh
You aren't using IE10 if that is the message you are seeing. Most likely, you are using IE9 or older. The message you are seeing is logged by the form uploader, which is never used if you are uploading via IE10. Perhaps you are running IE10 in IE9 or IE8 mode. Either way, the message indicates that you are working in a cross-origin environment (you have set the cors.expected option to true) but are not returning the proper response from your server. Note that older browsers, such as IE9 and older, utilize form submits, targeting an iframe, to upload files. In order to access the contents of that cross-origin iframe, the iframe needs to post a message containing the server response to Fine Uploader's window. This is all very easy to do, all you need to do is return a text/html response from your server that looks something like this:
"{\"success\": true, \"uuid\": \"9da17ad5-ad6a-40cd-81b5-226e837db45b\"}<script src=\"http://<YOUR_SERVER_DOMAIN>/iframe.xss.response-<VERSION>.js</script>.js\"></script>"
The javascript file mentioned in the script tag is provided in the Fine Uploader released zip file. It does all of the work for you. You must return a JSON response before the script tag, as illustrated above, and the response must include the UUID of the associated file.
You should read about cross-origin support either in the associated blog post.

Resources