hypeJunction / hypeWall

Wall functionality for Elgg
www.hypejunction.com
2 stars 3 forks source link

Photo Upload is not working #105

Open enraiser opened 6 years ago

enraiser commented 6 years ago

I have installed this plugin along with HypeAttachment plugin. and the Photos being selected are not at all getting uploaded.. Further debugging , I cant understand at all how it can ever work. in action/status.php You are looking for upload_guids which is alwayse empty. and in hypeapps_attach_uploaded_files you pass parameter called uploads.
There is no logic at all in this file that I can make out.

hypeJunction commented 6 years ago

Not sure offhand, but AFAIR that should work by converting uploads to Elgg files and passing on their guids. Try adding hypeDropzone, as it's how it's intended to work, maybe the fallback logic got corrupted along the way.

enraiser commented 6 years ago

I did a hack to get it working. File :HypeWall/views/default/forms/wall/status.php Line : 58 change name as "upoads' instead of upload_guids.


    $fields[] = [
        '#type' => 'wall/file',
        '#label' => elgg_echo('wall:photo'),
        '#class' => 'wall-field-photo hidden',
        'name' => 'uploads',//sachin
        'class' => 'wall-photo',
        'entity' => $entity,
    ];