guys!
I am gonna upload video file to stream of api.cloudflare using php.
I'm trying to send the following request to cloudflare.stream, but I'm getting an error: What is the accound_id value in the URL?
Help me.
Thank you...
Related
Have tried the API call as listed on Podio dev site to upload a file and I am not getting much joy.
I am trying to "Upload a file" in the first instance using the POST operation and passing the json with the source url to the endpoint as specified.
I can use other methods just fine but since there is little in the way or error feedback I am stuck I keep getting error 404
I have used - https://developers.podio.com/doc/files/upload-file-1004361
(have tried both GET & POST)
image of method with error i get
Upload file method that you are trying to use (https://developers.podio.com/doc/files/upload-file-1004361) is expecting file path which is supposed to be local file but not url.
Here is example of how it should be used:
http://podio.github.io/podio-php/api-requests/
$file = PodioFile::upload($path_to_file, $filename_to_display);
print 'File uploaded. The file id is: '.$file->id;
Here is another example on how to work with files:
https://developers.podio.com/examples/files
Hi people when i use this code it saves the pdf file without problem. But when i use: $pdf->Output("pdf_test.pdf", "I");. It gives me :
FPDF error: Some data has already been output, can't send PDF file
thank for helping
I want to upload the image on the facebook but there is a problem. I am facing the following error.
Fatal error: Uncaught CurlException: 26:
I found the exact problem here
The solution is give and he said to change the path as
# The URL for the Image to Transfer
$imageURL = 'http://server.com/the_image.jpg';
I did not understand what is meant by http://server.com either facebook.com or localhost??
$imageURL means the url of the image you want to upload.
Example you want to upload an image which is hosted at some website. The the url to the image is the $imageURL.
It will be easier to explain if you posted some codes.
I think you should have posted your doubt in the other question itself.
Hi all i'm working on an axis p1343.
I tested the ftp upload succesfully.
Now i need to work with http upload to handle images seen that i do not need to keep ol images. So i'm writing a php script to hande the image buffer from that web cam.
After some work i realized that the cam was not sending anything.
So i created e really basic script to just test the jpg stream.
I receive a request with no data inside.
Does anyone know how that camera send the stream in the HU (Httpp Upload) mode ?
Thanks.
SOLVED!
Solution
to download data sent from the cam just use file_get_contents("php://input") so u can access the data stream a retrieve the data that cam sends as an attachment to the request.
This happens because the axis webcam use to send file as an attachment to the request simulating a "download link" request in a browser.
So to catch up those damn bits u have to read the php://input stream ....
It took some time time to figure out this workaround ... hope this will help you.
<?php
file_put_contents('image.jpg', file_get_contents('php://input'));
?>
i have problem with uploading on my own server with nicEdit wysiwyg editor.
When you clikc on upload image you will upload image on other site. Here: imgur dot com
This is it: http://nicedit.com/demos.php
I want to use them php script to upload image on my own server/domain.
Can somebody tell me how to do it?
Here is the script: http://svn.nicedit.com//trunk/nicUpload/php/nicUpload.php
Still show message "Failed to upload image".
In console on firebug show this one:
<script>
try {
top.nicUploadButton.statusCb({"error":"Invalid Upload ID"});
} catch(e) { alert(e.message); }
</script>
POST is okay but i dont understand this. :(
Have anybody som good answer for me?
Thank you very buch.
PS: sorry for my english. :)
Daniel.
Did you install the PHP APC library on your server? I think you need to generate this id.
$id = $_POST['APC_UPLOAD_PROGRESS'];
NicEditor uses imgur as the default image upload service. The source code follows the API format described here: http://api.imgur.com/resources_anon#upload
My suggestion would be to implement the API request and response defined there.