I'm trying to write a plugin script that involves the user uploading a large file. To cope with this I need to alter the following settings:
If I alter these in php.ini it works as intended. However, it I try the following from within my plugin code, it doesn't take affect:
@ini_set( 'upload_max_size' , '100M' ); @ini_set( 'post_max_size', '105M');
I don't really want to have to talk the user through editing of either php.ini or a WordPress config file. Ideally I'd be able to perform it for them from within the plugin.
Does anyone know how this can be achieved?