- Edited
hi, I want to upload the " .pie " file, but i used the regular expression was useless.
(image|audio|video|pie)\/.*
hi, I want to upload the " .pie " file, but i used the regular expression was useless.
(image|audio|video|pie)\/.*
Hi flarum newb here, I tried using it on local development for now and I've been receiving
" Oops! Something went wrong. Please reload the page and try again. "
And when I press debug it says,
200 OK
POST http://flarum.dev/api/flagrow/upload
<br />
<fon
any suggestions? thanks ?
achlys you can edit your discussion and replace all ":" with "_". That's the manual solution for this.
@luceos Whenever I install an extension on my localhost and upload the entire folder to my site path, the same bug requires me to manually edit each discussion to replace all ":" with "_". What's the solution for that, please? Furthermore, it can't properly link the uploaded files whose names have spaces.
WaqarKhan Furthermore, it can't properly link the uploaded files whose names have spaces.
Could you give an example? see here
What application does a .pie
belong to? You're mistakenly trying to use a file extension for the mime type, try an online tool like this one to identify the mime type: http://mime.ritey.com/
kzyyy what's the exact error message, you've posted only part of it? <fon
?
Hi, I'm not able to upload files after installing the extension. I suspect this has to do with my Local storage settings
as I left it blank, not knowing what to put there. Can anyone help ?
LOCAL STORAGE SETTINGS
Content Delivery URL (prefixes files):
hunochma if you don't know what a content delivery url is, you don't need to add any value there. It's related to having a content delivery network: https://en.wikipedia.org/wiki/Content_delivery_network
luceos Thank you. Actually, my Admin
role could upload files while my User
role could not, so I realized that I had to update permissions in the Permission page
of the Admin panel. Maybe this extra installation/configuration step should be added in the FriendsOfFlarum FAQ
I've also been trying to upload PDF files with this:
(image\/(gif|jpeg|png))|(application\/(x-(7z|rar)-compressed|zip|arj|x-(bzip2|gzip|lha|stuffit|tar)|pdf))
But it didn't work. What string should I use if I only want images and pdf files?
Released version 0.4.0.
This is a minor update, however your old settings related to mime type configuration will be gone, so make sure you copy/paste the regular expression!
? I'm very happy about this release mainly because of the following features that have been added:
For a while I've been debating why we would only need one specific upload adapter (or service). For instance Imgur couldn't handle anything aside from images. It would make more sense if you could upload your video's to amazon aws, your files to a cdn and store perhaps gif's locally. This update allows you to configure an upload adapter per mime type expression!
Also, based on some voiced hopes for watermarking, I've added that as well. There is still a bug that you won't see a preview of the watermark image in admin, but I guess you are most likely as happy as I am with being able to watermark at all.
Thanks @Davis and @webeindustry for adding OVH as an adapter.
Thanks BeatPlus for adding Spanish on most content.
Update using
composer update flagrow/upload:^0.4.0
php flarum cache:clear
If any translator of my package is reading this post, feel free to update the language files accordingly.
hunochma Actually, my Admin role could upload files while my User role could not, so I realized that I had to update permissions in the Permission page of the Admin panel.
Updated the readme and OP. Thanks for pointing it out, let me know if you need assistance related to the regular expression thing (it should be easier with the new multiple mime type configuration).
When I try to update from 0.3.8 with
composer update flagrow/upload
I get
Nothing to install or update
I just tried installing this and saw the following image in the settings page. It seems weird. Is it supposed to look like this? I already tried disabling and re-enabling the extension and even removing and reinstalling the extension but it still looked like this.
Hard refresh (ctrl-f5 for Chrome) your browser. That can happen on occasion.
rationalboss after installing either re-enable any other extension or run
php flarum cache:clear
I tried using incognito mode in Chrome and it worked. That's weird behavior, my non-incognito window isn't refreshing the cache. Anyway, is this a Flarum thing, the need for a hard refresh? Or is it specific to this extension?
The cache is client-side (in-browser), and it's stored based on recommendations from header information set with the web-server. Modern web-browsers will honor these headers and keep the cache for the given period specified. It's a good thing for speed in usual cases, but requires it be dropped after major changes occur.
It's probably Cloudflare messing up with my cache. Thanks!