Hello
I do not know if you could solve your problem.
If not, I’ll give you the solution:
In the field: “Maximum Size in bytes” you must enter a value. Ex: 3000000
If you do not enter a value, it will not work.
I hope to help you.
FR :
Salut
je ne sais pas si tu as pu résoudre ton problème.
Si ce n’est pas le cas, je vais te donner la solution :
Dans le champs : “Maximum Size in bytes” il faut entrer une valeur. Ex : 3000000
Si tu ne rentre pas une valeur, cela ne fonctionnera pas.
J’espère t’avoir aider.
I have the same issue with pdf file upload.
Do you have an idea, please ?
@bgtbbox The field “Maximum Size in bytes” empty or not don’t fix this issue.
Hi, in um-actions-user we comment this function, we’re not sure if it was this action to solve the issue or just a miracle so better do this in a test enviroment.. :
/***
*** @after user uploads, clean up uploads dir
add_action(‘um_after_user_upload’,’um_remove_unused_uploads’, 10);
function um_remove_unused_uploads( $user_id ) {
global $ultimatemember;
um_fetch_user( $user_id );
$array = $ultimatemember->user->profile;
$files = glob( um_user_uploads_dir() . ‘*’, GLOB_BRACE);
if ( file_exists( um_user_uploads_dir() ) && $files && isset( $array ) && is_array( $array ) ) {
foreach($files as $file) {
$str = basename($file);
if ( !strstr( $str, ‘profile_photo’) && !strstr( $str, ‘cover_photo’) && !strstr( $str, ‘stream_photo’) && !preg_grep(‘/’ . $str . ‘/’, $array ) )
unlink( $file );
}
}
}
***/
Hi,
it works, thanks for the tip.
-
This reply was modified 8 years, 8 months ago by
benito33.
Thanks @serferweb – it solves my problem. Though not sure if this would be a long term solution
@serferweb Yes this works!!
AND this should be permanently fixed.
I think this needs to be brought to the attention to the developers, because this will be a temporary fix come a new update.
That function seems to unlink certain file uploads for some reason. I had several PDF upload fields on my profiles and the only thing that would work was to re-upload the same file several time until it stuck.
BUT after commenting out @serferweb code above this the PDFs upload without a hiccup!
Thanks for the solution! I was also struggling with this problem.