Setting up a HIPAA secured form / file upload

Assuming a developer that is/stays current on relevant security issues creates/manages the site, and a HIPAA compliant (per the regulations) hosting environment is used, forms, uploading, etc. is fine. If you proceed, note that compliance is more than technical. Policies/procedures have to be in place for using/managing the solution as well as incorporating the solution … Read more

Change file name on upload in Media Page

The best way of doing this might be to attach a custom field to each post to keep the increment {n}. Something to the effect of: $attach_inc = 1; if ( is_single() ) { if ( $attach_inc = get_post_meta( $post_id, ‘attachment_inc’, true ) ) { $attach_inc++; update_post_meta( $post_id, ‘attachment_inc’, $attach_inc ); } else { add_post_meta( … Read more

Error uploading images in wordpress

It’s usually a permissions error. We used to have these issues on our older servers. As a general rule for file permissions, you should never allow a folder to be “777” (Read/Write/Execute), but the uploads folder on this server, unfortunately, might need it. If you don’t know what I’m talking about, please take a read … Read more

Images Uploaded saving onto older/previous year folders

You should check yourself what you get when you execute wp_upload_dir. Typically you run this code: $d = wp_upload_dir(); print_r( $d ); wp_die(); And the reply needs to be like this in 2017/01 Array ( [path] => /var/www/html/test100.com/wp-content/uploads/2017/01 [url] => http://test100.com/wp-content/uploads/2017/01 [subdir] => /2017/01 [basedir] => /var/www/html/test100.com/wp-content/uploads [baseurl] => http://test100.com/wp-content/uploads [error] => ) You will … Read more