MyBB Community Forums

Full Version: Uploading files
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
It looks like there's no file upload class or any global file uploading functions.

If I'm wrong, where are they?

If I'm right, does anyone have any MyBB-friendly scripts for uploading files? Or should I write my own?

Edit: I need to upload an image for a plugin I'm writing. The user would select a file from their computer, the plugin would upload the file to a directory in /uploads/ and use it later in the plugin.

There are a set of functions for handling attachments that you could use. Take a look at ./inc/functions_upload.php