• Welcome to the Chevereto User Community!

    Here, users from all over the world come together to learn, share, and collaborate on everything related to Chevereto. It's a place to exchange ideas, ask questions, and help improve the software.

    Please keep in mind:

    • This community is user-driven. Always be polite and respectful to others.
    • Support development by purchasing a Chevereto license, which also gives you priority support.
    • Go further by joining the Community Subscription for even faster response times and to help sustain this space

Application not working, it doesnt upload :(

Nev

Chevereto Member
I had a coder code me an app, back when i was on chevo 1 , after the upgrade it doesnt work, but it connects into a php file and this is the code: Do you know whats wrong with this one like what bits has changed for chevo 2 ?

<?php



$uploaddir = 'i/'; // Relative Upload Location of data file



if (is_uploaded_file($_FILES['file']['tmp_name'])) {



$uploadfile = $uploaddir . basename($_FILES['file']['name']);



echo "File ". $_FILES['file']['name'] ." uploaded successfully. ";



if (move_uploaded_file($_FILES['file']['tmp_name'], $uploadfile)) {



echo "File is valid, and was successfully moved. ";



}



else



print_r($_FILES);



}



else {



echo "Upload Failed!!!";



print_r($_FILES);



}



?>
 
Chevereto 1.X is not the same as 2.X
In 1.X the method to make external apps was post on the /, like the firefox extension. In 2.X Chevereto has API and it means that any other old method is not compatible and you MUST switch to the API method.

Documentation: http://chevereto.com/docs#!api
 
Back
Top