• Hello,

    I have a a very bizarre problem. I use your plugin to store all media files in my S3 AWS bucket. I also use eform by WP Quark so users could upload files in bulk via form. When a user uploads jpeg files through the form, I see it both in my wordpress media library with S3 address and also see it in my AWS S3 console in a folder. However when a .wav file is uploaded through form, I can see it in in media library with correct s3 address, but it does not appear in a folder in AWS s3 console. The only way to make it appear in S3 console folder is to click on “view” in media library and after that the folder appears with a file in it in AWS s3 console.

    When I upload the .wav file directly to media library, everything works fine and the file shows with proper s3 address in media library, and the folder with a file in it created in AWS s3 console.

    It is a big problem for me because our users upload .wav files in bulk through the eform, and even though the correct s3 addresses are created, these files do not appear in s3 console, so there is no way to download them in bulk from s3 console, unless I go and click on “view” in media library manually for each file which is not feasible.

    Could you please help me?

    P.S. I turned off Object Versioning, but these .wav files still do not show in s3 console when uploaded through eform, but jpeg files do. I disabled cache for the page with eform. I also use cloudflare if it makes any difference.

    • This topic was modified 4 months, 2 weeks ago by  kodzaks.
Viewing 4 replies - 1 through 4 (of 4 total)
  • This is from eform WP Quark plugin forum, maybe it is relevant?

    Files are uploaded to wp-content/uploads/fsqm-files directory. So it inherits the permissions of upload directory. We do not generate any .htaccess file to keep the consistency of the upload directory.

    The .wav files seem to go here: wp-content/uploads/fsqm-files/

    and I actually found all .wav files in there (i.e. uploads/fsgm-files). Curiously jpgs are also there but in a strange format DSCF9418-ipt_fsqm_thumb.jpg

    So basically, the uploaded through eform .wav file has 2 addresses and they both work:

    s3 bucket address

    and

    /uploads/fsqm-files address

    • This reply was modified 4 months, 2 weeks ago by  kodzaks.
    Plugin Contributor ianmjones

    (@ianmjones)

    @kodzaks What does the _wp_attachment_metadata record in the postmeta table look like for the wav file after upload via eform compared to when you fix it by viewing the ML item?

    Hello,

    So, I uploaded 2 files through eform: proba_try.wav sound file and DSCF9415.jpg image file.

    For the wav file, metadata does not change between initial download and when I open it through view:

    _wp_attachment_metadata

    Before
    a:16:{s:10:”dataformat”;s:3:”wav”;s:12:”bitrate_mode”;s:3:”cbr”;s:10:”wformattag”;i:1;s:5:”codec”;s:27:”Pulse Code Modulation (PCM)”;s:8:”channels”;i:1;s:11:”sample_rate”;i:256000;s:7:”bitrate”;i:4096000;s:15:”bits_per_sample”;i:16;s:8:”lossless”;b:1;s:11:”channelmode”;s:4:”mono”;s:17:”compression_ratio”;i:1;s:10:”fileformat”;s:3:”wav”;s:8:”filesize”;i:5120192;s:9:”mime_type”;s:11:”audio/x-wav”;s:6:”length”;i:10;s:16:”length_formatted”;s:4:”0:10″;}
    After:
    a:16:{s:10:”dataformat”;s:3:”wav”;s:12:”bitrate_mode”;s:3:”cbr”;s:10:”wformattag”;i:1;s:5:”codec”;s:27:”Pulse Code Modulation (PCM)”;s:8:”channels”;i:1;s:11:”sample_rate”;i:256000;s:7:”bitrate”;i:4096000;s:15:”bits_per_sample”;i:16;s:8:”lossless”;b:1;s:11:”channelmode”;s:4:”mono”;s:17:”compression_ratio”;i:1;s:10:”fileformat”;s:3:”wav”;s:8:”filesize”;i:5120192;s:9:”mime_type”;s:11:”audio/x-wav”;s:6:”length”;i:10;s:16:”length_formatted”;s:4:”0:10″;}

    _wp_attached_file is listed as
    fsqm-files/Proba_try.wav

    But here is a field that is not present for image file (I do not if it is relevant):
    _edit_lock
    1549915887:1

    For image:

    _wp_attached_file
    fsqm-files/DSCF9415.jpg

    _wp_attachment_metadata

    a:6:{s:5:”width”;i:4288;s:6:”height”;i:3216;s:4:”file”;s:23:”fsqm-files/DSCF9415.jpg”;s:5:”sizes”;a:19:{s:9:”thumbnail”;a:4:{s:4:”file”;s:20:”DSCF9415-150×150.jpg”;s:5:”width”;i:150;s:6:”height”;i:150;s:9:”mime-type”;s:10:”image/jpeg”;}s:6:”medium”;a:4:{s:4:”file”;s:20:”DSCF9415-300×225.jpg”;s:5:”width”;i:300;s:6:”height”;i:225;s:9:”mime-type”;s:10:”image/jpeg”;}s:12:”medium_large”;a:4:{s:4:”file”;s:20:”DSCF9415-768×576.jpg”;s:5:”width”;i:768;s:6:”height”;i:576;s:9:”mime-type”;s:10:”image/jpeg”;}s:5:”large”;a:4:{s:4:”file”;s:21:”DSCF9415-1024×768.jpg”;s:5:”width”;i:1024;s:6:”height”;i:768;s:9:”mime-type”;s:10:”image/jpeg”;}s:11:”bloom_image”;a:4:{s:4:”file”;s:20:”DSCF9415-610×458.jpg”;s:5:”width”;i:610;s:6:”height”;i:458;s:9:”mime-type”;s:10:”image/jpeg”;}s:21:”et-pb-post-main-image”;a:4:{s:4:”file”;s:20:”DSCF9415-400×250.jpg”;s:5:”width”;i:400;s:6:”height”;i:250;s:9:”mime-type”;s:10:”image/jpeg”;}s:31:”et-pb-post-main-image-fullwidth”;a:4:{s:4:”file”;s:21:”DSCF9415-1080×675.jpg”;s:5:”width”;i:1080;s:6:”height”;i:675;s:9:”mime-type”;s:10:”image/jpeg”;}s:21:”et-pb-portfolio-image”;a:4:{s:4:”file”;s:20:”DSCF9415-400×284.jpg”;s:5:”width”;i:400;s:6:”height”;i:284;s:9:”mime-type”;s:10:”image/jpeg”;}s:28:”et-pb-portfolio-module-image”;a:4:{s:4:”file”;s:20:”DSCF9415-510×382.jpg”;s:5:”width”;i:510;s:6:”height”;i:382;s:9:”mime-type”;s:10:”image/jpeg”;}s:28:”et-pb-portfolio-image-single”;a:4:{s:4:”file”;s:21:”DSCF9415-1080×810.jpg”;s:5:”width”;i:1080;s:6:”height”;i:810;s:9:”mime-type”;s:10:”image/jpeg”;}s:35:”et-pb-gallery-module-image-portrait”;a:4:{s:4:”file”;s:20:”DSCF9415-400×516.jpg”;s:5:”width”;i:400;s:6:”height”;i:516;s:9:”mime-type”;s:10:”image/jpeg”;}s:37:”et-pb-post-main-image-fullwidth-large”;a:4:{s:4:”file”;s:22:”DSCF9415-2880×1800.jpg”;s:5:”width”;i:2880;s:6:”height”;i:1800;s:9:”mime-type”;s:10:”image/jpeg”;}s:11:”mtsnb-thumb”;a:4:{s:4:”file”;s:18:”DSCF9415-50×50.jpg”;s:5:”width”;i:50;s:6:”height”;i:50;s:9:”mime-type”;s:10:”image/jpeg”;}s:21:”woocommerce_thumbnail”;a:5:{s:4:”file”;s:20:”DSCF9415-300×300.jpg”;s:5:”width”;i:300;s:6:”height”;i:300;s:9:”mime-type”;s:10:”image/jpeg”;s:9:”uncropped”;b:1;}s:18:”woocommerce_single”;a:4:{s:4:”file”;s:20:”DSCF9415-600×450.jpg”;s:5:”width”;i:600;s:6:”height”;i:450;s:9:”mime-type”;s:10:”image/jpeg”;}s:29:”woocommerce_gallery_thumbnail”;a:4:{s:4:”file”;s:20:”DSCF9415-100×100.jpg”;s:5:”width”;i:100;s:6:”height”;i:100;s:9:”mime-type”;s:10:”image/jpeg”;}s:12:”shop_catalog”;a:4:{s:4:”file”;s:20:”DSCF9415-300×300.jpg”;s:5:”width”;i:300;s:6:”height”;i:300;s:9:”mime-type”;s:10:”image/jpeg”;}s:11:”shop_single”;a:4:{s:4:”file”;s:20:”DSCF9415-600×450.jpg”;s:5:”width”;i:600;s:6:”height”;i:450;s:9:”mime-type”;s:10:”image/jpeg”;}s:14:”shop_thumbnail”;a:4:{s:4:”file”;s:20:”DSCF9415-100×100.jpg”;s:5:”width”;i:100;s:6:”height”;i:100;s:9:”mime-type”;s:10:”image/jpeg”;}}s:10:”image_meta”;a:12:{s:8:”aperture”;s:3:”8.8″;s:6:”credit”;s:0:””;s:6:”camera”;s:13:”FinePix AV180″;s:7:”caption”;s:0:””;s:17:”created_timestamp”;s:10:”1548497647″;s:9:”copyright”;s:0:””;s:12:”focal_length”;s:3:”5.7″;s:3:”iso”;s:3:”200″;s:13:”shutter_speed”;s:6:”0.0005″;s:5:”title”;s:0:””;s:11:”orientation”;s:1:”1″;s:8:”keywords”;a:0:{}}s:8:”filesize”;i:1388646;}

    kodzaks

    (@kodzaks)

    Hello,

    Do you have any update for me on why my uploaded .wav files do not go to S3 bucket?

    Also, I am having another issue with plugin, broken links this time. For example, I upload some image (ABC.png), it does go to S3 bucket and under “edit media” in file url it shows correct https://s3.amazonaws.com/XXXXX/ABC.png address. In path it shows wp-content/uploads/XXX/ABC.png

    But there also appears to be broken link present, and it shows in my list of broken links on the website.

    https://website.com/wp-content/uploads/ABC.png

    When I click on it I get this: Fatal error: Uncaught Error: Call to undefined function + a lot of text.

    I have been manually editing these links by giving them proper s3 address, but it is not normal.

    Can you resolve these 2 issues for me please? Thank you.

Viewing 4 replies - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.