Manipulate the files uploaded via Gravity Forms before they are stored

Looks like I was using this class to do this: http://gravitywiz.com/rename-uploaded-files-for-gravity-form/ and added the filter in myself after line 207, ie. // replace merge tags $form = GFAPI::get_form( $entry[‘form_id’] ); $value = GFCommon::replace_variables( $value, $form, $entry, false, true, false, ‘text’ ); // MOD: add a filter here to hook into filename change $value = apply_filters(‘gravity_forms_upload_filename’, … Read more

WP media upload issues

You could look here https://www.digitalocean.com/community/questions/wordpress-the-uploaded-file-could-not-be-moved-to-wp-content-uploads for some good answers.

How to display the maximum upload size in a WordPress single site?

The answer actually lies on the same page where you inspected your modifications: /wp-admin/media-new.php. If you get to the /wp-admin/media-new.php file, you will get a function: <?php media_upload_form(); ?> And the function is located in /wp-admin/includes/media.php, where you will get the following line: $max_upload_size = wp_max_upload_size(); So the holly grail you are searching is: wp_max_upload_size(). … Read more

Unable to upload images into the media library

With help from @simongcc and https://fancythemes.com/fix-image-upload-issue-wordpress I’ve found that the Settings > Media > Store uploads in this folder value was not correct and after updating with the correct path I was able to successfully upload pictures.

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)