How to save image to google drive using php [closed] - php

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 5 years ago.
Improve this question
i want to save image on google drive on button click using core php. I don't know anything about it. Got some examples of API but i don't know about API and all. So please give me link or solution that describes from initial. Thank You

you could use DROPzone & then connecto to google
imagesDropzoneInstance = new Dropzone '#imagesDropzone',
url: 'https://www.googleapis.com/upload/drive/v2/files?uploadType=media'
method: 'post'
maxFileSize: 5
paramName: 'images-dropzone-input'
headers:
'Authorization': "Bearer #{ uploadBundle.accessToken }"
addRemoveLinks: 'dictRemoveFile'
imagesDropzoneInstance.uploadFiles = (files) ->
uploadFiles: (files) ->
.. copy the uploadFiles method of Dropzone, modify, then paste here..
# Add the end:
xhr.send files[0] # This overrides the default upload behavior.
but my personal favourite is CLoudinary

Related

using ajax url to call php file [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 2 years ago.
Improve this question
Cant seem to connect the ajax url to a php file. I've been fiddling around for ages.
File path of JavaScript: h******ze.com/public_html/wp-content/themes/buddyboss-theme-child/assets/js
needs to be be linked to file path PHP:
h******ze.com/public_html/wp-content/plugins/buddyboss-platform/bp-templates/bp-nouveau/buddypress/activity/user-duration.php
setInterval(function(){
$.ajax({
url: '/public_html/wp-content/plugins/buddyboss-platform/bp-templates/bp-nouveau/buddypress/activity/user-duration.php',
success: function(data) {
$('.result').html(data);
}
});
}, 3000);
Assuming the website is visible at h???????ze.com and not h??????ze.com/public_html your URL should be /wp-content/plugins/buddyboss-platform/bp-templates/bp-nouveau/buddypress/activity/user-duration.php
public_html is the root of your website and will contain index.php so you need to point it there. The browser has no access to anything before this in the URL you are using.

Can I post event photos to Facebook event by website or mobileApp using graph-api 2.7? [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 6 years ago.
Improve this question
After I read this https://developers.facebook.com/docs/graph-api/reference/event/photos/#Creating I'm not sure that POST request is Upload photo to event or just upload url photo (param "url" in the table) or else ? I try to find any example but still can't find any of it.
As it says there in the description of the url field,
The URL of a photo that is already uploaded to the Internet. You must specify this or a file attachment
The second part means, you can also upload a file (instead of providing a URL). The parameter name for uploads historically has been source – but you can use basically any name, the API doesn’t care. (If you post to a /photos endpoint and the data contains a file upload, then the API will use that, no matter what it is named.)
You can follow this example, https://developers.facebook.com/docs/php/howto/example_upload_photo – that is for an upload to a user profile, but it works the same way for events etc.

Android put images from server into listview [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 7 years ago.
Improve this question
I want to take pictures from my PHP server and put it into my android ListView
I am using the code example in https://www.simplifiedcoding.net/android-programming-tutorial-to-get-all-images-from-server but this only gets all of the images and shows them one by one.
You should really try to be using Android Volley for data transfers. It is developed by the Android team and is the recommended convention.
http://developer.android.com/training/volley/index.html
And as far as your list view goes, unless you have some specific reason to use it, you may want to look into Recyclerview. It handles most of the loading and view holding issues. http://developer.android.com/training/material/lists-cards.html#RecyclerView
Use android picasso library to get images to your app via url, its very easy to use.
checkout this tutorial on the use of picasso
http://javatechig.com/android/how-to-use-picasso-library-in-android
hope this help.
Another option is universal image loader. https://github.com/nostra13/Android-Universal-Image-Loader

How to write post to my FB fan page from my own website [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 8 years ago.
Improve this question
In my Admin panel on site i can upload photo... I want make form where i must write post and upload photo.
When i write some post and upload some photo, it save photo to server and save post to database.
I ALLREADY HAVE THIS.
And i want do this:
When it save photo and save post, it shoud log me to facebook and send post to site where Im admin.
Prease look to this image
I
I
V
And now: can you help me pls?
Based on my knowledge of the facebook API (which granted is not fluent) this isn't exactly possible, it'd be a pretty big security risk.

HTML5 Mobile application [closed]

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 8 years ago.
Improve this question
I start a new mobile application using jQuery Mobile.
Basically it will pull Events and Gallery from Facebook.
1.Normal PHP files will be on server and I will just make a Ajax request to them.
Like this:
$.ajax({
type:"POST",
url : "www.example.com/example.php",
data : somedata,
dataType : 'json',
2.If I will make it like this with no Internet connetion it will show error.
There is a way to save(cache) the last call to server?
And if new call is made and ther is no Internet Conenction or Bad Request or any other error and empty response, show the latest good response!
Thank you for any suggestions.
1.It is normal if PHP files will be on server and I will just make a Ajax request to them.?
Sure it is.
2.There is a way to save(cache) the last opretaions?
Of course. You could try the HTML5 application cache, or other server-side (PHP) methods.

Categories