Is there anyway to send files to public folder from Android? - android

I got a website hosted by Parse.com and it has its own tool to upload files.
I want to know if is there any way for me to send files from android app. I have my data shared with my android app, and it would be great if I can send images to the web site.

You should use the Android-Library of Parse.com.
It makes it very easy for you to connect your Android App to the Parse backend.
If you look at the docs, there is a section about uploading and downloading files.
https://www.parse.com/docs/android_guide#files
I've never tried it but I think this will allow you to upload your images to the backend.
There is also a JavaScript library to connect your website (client side) to the parse backend.
Again, if you look at the docs, there is a section about uploading and downloading files.
https://www.parse.com/docs/js_guide#files
You should be able to use the JavaScript library to access the previously uploaded app-images.
The basic flow would look like this:
Android App -> Android Parse Library -> Parse Back End
Parse Back End -> JavaScript Parse Library -> Website
Keep in mind: This is all hypothetical since I haven't tried it.

You can use Es explorer https://play.google.com/store/apps/details?id=com.estrongs.android.pop Install this application and then select network option in that select ftp . Then connect to your ftp server using your credential. then copy paste thats it

Related

test server for upload files - android

I am using retrofit library in my android app. I read multiple tutorial about upload and download files and working with json data. most of these tutorial have worked with image for simplicity and there is some API for working with that like imagur, but I want to work with audio files in my app and I don not know any server or API for testing upload and download mp3 files. can anybody introduce me some of that?
update :
How can I make my own computer for testing? is this possible?
There are so many Linux servers and which are free. Try https://www.hostinger.in/
for free domains and 1gb disk size.
Furthermore, if you want to test on your own computer try wamp,xampp or IIS (for .NET) and publish your code over there.

Unable to download .apk in android 5.0 from website

Need help.
We have two servers that deploy the website. The website has a link that can download an .apk file to a mobile.
The problem is, when site is access in mobile using android 4.x, it downloads successfully on both server. However, when using android 5 (lollipop), it download successfully in one server but unsuccessful in another.
the mime type for both server is the same (application/vnd.android.packa..). Certificate for both server is ok also (although they have different issuer, which I don't think is an issue)
I also check the properties of the website, and its the same.
Is there are any setting in web server that I need to check or any security setting that makes one server download successfully the apk file while the other does not?
Appreciate any thought on this.

How to upload files to HTML5 Web App from Google Drive or Onedrive?

I am designing an web application that will allow applying for the jobs we post in our career page. The application will use responsive design and should make it easy for mobile users (iOS and Android initially) to upload their resumes. I read something about uploading files to Google Drive or MS Onedrive using their corresponding APIs. However, I am trying to do the opposite; browse files, select a resume, perhaps download it locally, and finally upload it to my web application.
Do you know if this is possible? If so, what would be your recommendation?
Thanks in advance!
First you can ask the user to authorize to use their Google Drive Data using OAuth2.0. The below two reference links from the Google Drive API will be useful
1.Get the list of filenames using the filelist option in the api and fetch the filename from the list https://developers.google.com/drive/v2/reference/files
2. Download the file directly to your server using the Downloads feature of the API
https://developers.google.com/drive/web/manage-downloads
I hope this gives you enough direction to proceed further.

Android web application on cloud storage

I have a cloud storage website and I want to create an Android application for that website.
I tried 2 methods.
First Method
Using Phonegap to open a remote website which handles everything and its built-in PHP so everything works fine. But a Cloud Storage app must allow uploading and downloading. In Phonegap I can upload through the website but can't download directly to local storage. It can only be done locally if my website is in the local www folder. Also in this way API of Phonegap can't be used either. If I download any file the browser opens up, in this case.
Second Method:
I tried to use Phonegap locally and just create an API of my cloud storage website so that locally with the help of jQuery ,Ajax so that I can post data to the remote URL, but that can't be done due to the Same Origin policy. I may receive the JSON data of files and show but can't log the user in and other features. :( Again a problem.
What else can I do? Is there any other method or solution you can provide me regarding these two methods or any alternative method I can use?
Depending on the kinds of data you're talking about there are several alternatives.
You're describing a cloud storage app (I'm assuming like drop box or Google drive right).
Therefore you'll want to write to the file system instead of some kind of database (locally ofc)
I would therefore check out the following api docs;
http://docs.phonegap.com/en/2.1.0/cordova_file_file.md.html#File
Examples are there too.
PS ive had same origin problems in development, but they seem to go away in production, try testing there too.

Save File to a remote Url

first of all sorry for my english , not my main lang.
I need to export some data to a remote folder from android.
I have a file on android "file.xml" and i need to export it to a folder (under iis)
"http://192.168.x.xx/folder/fileuploaded.txt"
It seems most of the examples out there are using an upload script in php, but i need to do it only from android. Doing the opposite way (from remote url to android app) is easy with Url.openStream(), but i cannot find a working example to put back the file on the server.
Maybe im missing something, this is my first android (and java btw) app.
anyone could point me in the right direction?
Thanks!
Diego, what you are trying to achieve is not possible only from Android. You cannot put a file on the server using HTTP unless there is a receiving application running.
You can only post your binary data to the server (url) but to write it locally and make it available on the http again for download, can only be done if you have a server app. It could be created using any language PHP, JSP, ASP etc.
You cannot just upload files to server of your wish unless there is something on the server side that allows file uploads. That is usually a ASP/Perl/PHP script.
If you don't want to use such a script, then one way to do this is to run ftp on your server and upload files using that.

Categories

Resources