I am seeking an easy and light weight way to upload a file to a REST API using CORS in IE 8. I am using the following plugin: angular-file-upload.
Since flash doesn't support custom headers using CORS,Which means that I cannot upload a file using CORS on IE 8.
I have opened an issue on github on this matter, but no luck so far.
Is there a workaround solution for flash to support custom header this??
Is there any other angular module(directive) for file upload which i can use for CORS fileupload which works in IE 8??
Any help will be appreciated.
Thanks
Related
I'm developing an application for LG WebOS using Angular2, in Chrome and Firefox works fine but in TV embedded browser not works. This problem reproducing only when I using HTTP module
enter image description here
any solution?, Thanks.
Edited:
LG WebOS not support cookies, my solution was disable cookies from HTTP module of Angular2.
According to the image that you provided the cookie in the browser cannot be read. The issue might be that cookies are disabled in the embedded browser, or you are trying to access a module like localStorage that might not be available in the embedded browser.
This would explain why the calls do not work in all browsers.
Ok, somehow I am serving ads in my NodeJS / AngularJS application, but I haven't include this myself.
There's some package or included link sending ads to the client, but the ads are not visible, and the adserve url changes with every request. (The url that can be seen in the screenshot below)
How do I find out which place in my application serves these ads?
PS: I am sure this doesn't come from my local dev pc, my other collegues have this issue as well.
A quick trick may be to search for the url in every files of your repository. If you use a cdn to load your librairies, try to look inside also (you can do that directly in chrome dev tool with ctrl/cmd f in the sources tab).
Hope it will help !
The "adserver" in my project turns out to be a tracking / analytics beacon included by the Realtime.co framework.
Thankfully, the author responded to my email very quickly, and they also provide a beacon-free version of their framework. So problem solved :)
I have seen ways to upload a file that originates from a <form> <input> but what I am trying to do in ionic is snap a photo using the camera plugin, then record audio using the media plugin and finally uploading both files in the same HTTP POST request. I know how to snap the photo and record the audio. I just need input on uploading both files in the same request. Anyone have insight how this can be done?
I resolved my issue with the following stackoverflow answer. Hopefully this will help others out in the future.
https://stackoverflow.com/a/25995009/4891914
I have a hybrid application built using a WKWebView. I have gotten around the loading local files issue, but I am having trouble loading an AngularJS application from local files. I am getting the following error:
Cross origin requests are only supported fro HTTP.
With Android I was able to update setting on the WebView control to allow this from file:// schemes. Is there anything similar that I am missing in iOS? Or another solution?
I am using XCode 6.3 (6D570)
This is a known issue with WKWebView in iOS 8, and I suspect that's why UIWebView remains undeprecated.
I haven't had time to use the betas yet, but my only suggestion is to give the latest Xcode 7/iOS 9 a shot, and use the new WKWebView API
- (WKNavigation * _Nullable)loadFileURL:(NSURL * _Nonnull)URL allowingReadAccessToURL:(NSURL * _Nonnull)readAccessURL
which would ideally let you pull in other HTML files as templates in the readAccessURL that you provide.
Please file any bugs you see in the latest beta. Apple is way too slow to move on the issues in WKWebView.
If you just need the Angular app to work now, then you'll need to switch to UIWebView, which is confirmed to work with angular-based webapps stored on the device.
I'm trying to upload a file using the CK editor media plugin, but it throws 500 internal server error in the url (/media/browser?render=media-popup&plugins=undefined). Also error with drupal media js settings
this.contentWindow.Drupal.media is undefined.
I search through the internet and it seems there is some issue with Drupal 7 media module. Your help is much appreciated!
Do you have the Media Upload installed and configured to work with your WYSIWYG editor? It should work as long as you have all of those things in place. Here is a great reference to help make sure you have everything setup the way you need.
https://www.drupal.org/node/1882314
This blog can help you to find solution..http://www.ziuby.com/configure-media-drupal-upload-images/