zip unzip attachments in wordpress

WordPress provides a function called unzip_file()— easily found by typing “wordpress unzip” into Google. There is sample code in the Codex: WP_Filesystem(); $destination = wp_upload_dir(); $destination_path = $destination[‘path’]; $unzipfile = unzip_file( $destination_path.’/filename.zip’, $destination_path); if ( $unzipfile ) { echo ‘Successfully unzipped the file!’; } else { echo ‘There was an error unzipping the file.’; } … Read more

Is it possible for a plugin to force reading and writing of uploaded images to a database instead of to a filesystem?

Yes, you should have quite reasonable options to customize upload, there are plenty of existing solutions around. As for specifics I am not sure on “database” as image storage option. They typical solutions that I’ve heard of are: dedicated location behind CDN (or some variation of); dedicated image storage service, such as Amazon S3.

Patient portal using wordpress

Yes its possible to link a file to buddypress member as admin. An important piece of the API is the BP_Attachment class. You can extend it to be ready to receive user submitted files, validate these submissions and finally write the files in a /wp-content/uploads’s subdirectory you define. You can review more details and final … Read more

Blob file download problem

There are some security issues. Please sanitize your input because someone can download from Your database something different than archive, or simply drop Your database. $fid = sanitize_text_field( $_GET[‘fid’] );