upload heavy file from one server to another server - file-upload

I have created a application and integrated api of soundcloud. I firstle i am uploading traks on my server after that to the soundcloud server through cron jobs.
It is working fine for smaller file but not for heavier file.I have posted this problem on google group they replied the following:-
Do you proxy the
download through your server? Can you check there that it is received
correctly
I am unable to understand this. can you ples let me explain this.
thanks

I think there is some confusion.
You have asked soundcloud a problem about an upload of the file to soundcloud servers, and they have replied about download of the file from soundcloud.
What they mean is when a user tries to download a file from the soundcloud server, is it going via your server or directly via soundcloud.
Proxy here means the intermediate server - so they are asking is it getting to your server correctly?
I think you need to rephrase your question for them to understand it better - and clarify you mean an upload from your server to soundcloud.

Related

https://appr.tc is down. How to set up own signaling server/ room server URL?

I'd developed a video calling app on Android using WebRTC and was using the https://appr.tc as the signaling server (Room Server URL). But according to https://groups.google.com/g/discuss-webrtc/c/H7XuZfgkGH0 apprtc is now taken down. When I run the AppRTC demo app I get the following error:
Connection Error
Non-200 response to POST to URL: https://appr.tc/join/room_id32864 : HTTP/1.1 404 Not Found
Could someone please show the way on how to change the Room Server URL or setup my own Room Server URL? Any help would be appreciated. Thanks
The source code of apprtc remains available on github:
https://github.com/webrtc/apprtc
You might want to read this blog post about whether to use it though:
https://bloggeek.me/webrtc-signaling-server-not-use-apprtc/
The project has been effectively abandoned for years and you will have a hard time finding support.

Controlling if download is successful from s3 to user

I'm using s3 to allow users to download files directly from frontend a limited number of times.
Problem is I need to know if a download was successful before I update the number of download left.
Is there any way I can get any kind of control over it like s3 callback when download finished or something?
The only thing I found was Server Access Logging but after reading trough the
Best Effort Server Log Delivery section I think I need something a bit more deterministic than that.
No, this capability is not possible. It is not possible to receive a notification when an object has been accessed. The logs are the only indication of activity.
If this is a vital need, then you will need to serve the file via your own application.

How to address Firebase from an Arduino?

Background: I've a sensor hooked up to an arduino printing readings through the serial monitor. I want to log these in firebase.
I've done a bit of digging on this, and my research has shown me that an arduino simply can't handle the SSL needed to talk to firebase properly.
Any suggestions for workarounds? Checking SO and google's only turned up "it can't be done", but I figured I'd ask anyway. Any lateral thinking is appreciated, thanks!
If you figure out a way, let us (support#firebase.com) know. That would be an awesome hack!
Some thoughts:
You might want to look into the Spark Core (available for pre-order). They mention SSL support, though it's unclear to me what that means exactly.
You could proxy the requests through a server that can speak SSL. For instance, you could run a tiny node.js service on an Amazon EC2 box that just proxies REST requests to Firebase (e.g. using http-proxy).
If you're hardcore, you could try to get the Arduino talking to an external ethernet controller that has built-in SSL support (e.g. this one), but that's probably a big project. :-)
Longer-term, we might expose a non-SSL endpoint for Firebase requests that's specifically for this sort of low-end hardware use-case. Ping us at support#firebase.com if you want to start a dialog.
Here's a php script I whipped together to solve for Arduino no https.
It's basically a form that GETs to the php script and then sends it off to your Firebase database.
http->php->Firebase
https://github.com/robertcedwards/httpFirebase
*Make sure you add Heroku or your server to the whitelist of IPs that can post to Firebase
I know its an old question but visitors from google keep coming.
Have a look at this post: http://www.devacron.com/arduino-firebase/
[EDITED]
These arduino libraries might help:
firebase-arduino
https://github.com/googlesamples/firebase-arduino
https://github.com/ed7coyne/firebase-arduino
To install it:
Download the zip file, go to Sketch>Manage Libraries>add .zip file
Now you have access to
#include <FirebaseArduino.h>
and can begin using it with
Firebase.begin("example.firebaseio.com", "token_or_secret");
Follow the example at https://github.com/ed7coyne/firebase-arduino/blob/master/examples/FirebaseDemo_ESP8266/FirebaseDemo_ESP8266.ino

Objective C, How to update forum database from iPhone

Let's say I have a WordPress forum and I want to create an iPhone application that takes a photo and post the photo on the forum. Is it possible to access forum's database from iPhone?
I have some of basic knowledge how to send and receive information between iPhone and a web server. I have done a couple of applications that sync with web server. I wrote php scripts to access MySQL database and send data back to device in XML format. But I am not sure I can still do this kinds of work with third party forums such as WordPass or any well known forum..
Thanks in advance..
WordPress has RPC services, that you should be able to use.
See: http://codex.wordpress.org/XML-RPC_Support

Protocol for a desktop based file uploader

I am trying to build a large file uploader. Currently I am using swfupload and nginx + rails and I am able to upload a file as large as 1 GB before running into problems. After 1 GB, depending on OS, swfuploader starts locking up or just starts throwing 500 errors.
I noticed that Vimeo offers 2GB uploads using a desktop uploader. Flickr has something similar too (and I think they support pausing the uploads). What protocol can be used for such a desktop uploader? Can FTP be used for this?
Thanks
Prateek
Na, I would not use FTP for this, for the following reasons:
FTP is evil and should die (active/passive connections, unencrypted credentials)
Doing proper handling of security would be complex. You cannot use a single account for everything (as the credentials will need to be embedded in your client-side software), so you would need an FTP server which can authenticate against your web application's user database (possible, but longwinded)
You would need to write some integration between your app and your FTP server
You could handle this using a custom simple protocol. I don't know if doing it over HTTP would be efficient, but if it was, you would just need to POST parts of your file and handle it server-side. Just make sure you allow partial uploading. It should be pretty simple to implement.