Developing a simple php application for uploading and viewing files from Box
I am trying to create a simple WordPress application using PHP for box. but i cant find any proper information or examples on how to do this.
Heres what i am creating
1. A configuration form
Users will create a folder on their box and get some parameters from it and update this configuration info which gets saved on the database.
2. upload form.
when other authorized users visit this page will see an upload form generated by the appropriate configuration information. When they upload a file using this form, the file should be renamed to add the uploaders name as well and then uploaded. and then confirmation is provided.
3. Box view form.
This page will be visible to the owner of the box, it will take values from the configuration information and display the form.
I have the forms and platforms and rights ready.
1. I need the appropriate configuration information I need that users can readily get from their Box, to achieve the things above.
2. What is the appropriate PHP code for the uploading a file as needed above.
3. What is the appropriate PHP code to setup the box view to the admin using the configuration.
Thanks
-
Hey
Box doesn't currently offer an official PHP SDK or API wrapper. There's a community-maintained PHP/Laravel package that you can take a look at from maengkom on GitHub. It has a fairly through README with guidance on uploading a file.
I wasn't able to find any other community examples of the functionality you are looking to add, but hopefully that PHP wrapper gets you in the right direction.
-
sure, you can use some of our Box UI elements like this one: https://developer.box.com/docs/box-content-uploader
Please sign in to leave a comment.
Comments
3 comments