• Welcome to the Chevereto user community!

    Here users from all over the world gather around to learn the latest about Chevereto and contribute with ideas to improve the software.

    Please keep in mind:

    • 😌 This community is user driven. Be polite with other users.
    • 👉 Is required to purchase a Chevereto license to participate in this community (doesn't apply to Pre-sales).
    • 💸 Purchase a Pro Subscription to get access to active software support and faster ticket response times.

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