File Upload element - Amazon S3 issue

Nope, sorry, it dropped off my radar. Typically, if you don't hear from me for a couple of days, you should bump the thread to remind me. In this case, J! released the first 4.0-dev alpha, so I've been sucked into the first steps in migrating Fabrik to J! 4.0.

I'll take a look at it tonight.

-- hugh
 
Thank you, Hugh. I appreciate it. I look forward to hearing back from you on your results.


Sent from my iPhone using Tapatalk
 
Yes, no problem. I just added it to my sites.
Thanks, again, Hugh. I appreciate it.


Sent from my iPhone using Tapatalk
 
Well, that took waaaay longer than I'd hoped.

First problem turned out to be you were using the old (deprecated) Amazon S3 storage adapter, instead of the new "Amazon S3 (SDK)" one. The old one hasn't had any of the love the new one got last month - none of the thumb creation fixes. So the thumb path ended up being the same as the main upload path, and the thumb was overwriting the main image in S3.

Then it turned out you hadn't uploaded the most recent fixes for the new adapter, yours was missing a couple of critical fixes.

But even after switching your upload element to the new one, and uploading the latest and greatest, I had to track a new and interesting bug:

https://github.com/Fabrik/fabrik/commit/1d4b0e63ba4cc2ccf2cbb1669b1c48b8b9ff945a

... whereby if the main upload folder was specified with a trailing slash, like /uploads/s3/, and the thumbs wasn't, like /uploads/s3/thumbs, then the file path ended up being /uploads/s3/thumbsfile.png instead of /uploads/s3/thumbs/file.png.

Anyway, all fixed now. You now have thumbs and full size images, with lightbox effect in the list.

BTW - can you do me a favor and delete all my test files from your S3 bucket? I accidentally used some of my scanned medical records as test files, lol!

-- hugh
 
Awesome! Great job, Hugh. I just deleted everything from the S3 bucket (except the last image that had the thumb & was just a screenshot).
I appreciate it.


Sent from my iPhone using Tapatalk
 
Thanks. Not that anyone is interested in my medical invoices (except the FSA card people), but I probably shouldn't use them as test data, lol.

-- hugh
 
We are in need of some funding.
More details.

Thank you.

Members online

Back
Top