Lolu
tankerkiller125 Yes.
tankerkiller125 Yes.
lmst2 maybe you're trying to send a file that's too big for your webserver? Check the upload upload size in your hosting, proxy, webserver and/or PHP. A connection reset is usually outside of what's controlled by the extension.
clarkwinkelmann thanks, I found out that my apache2 server have default only allow upload file less than 2M
Lolu try to get new cert's with certbot-dns-cloudflare
and use it
sizonov_stas Thanks the problem is solved.
there are some problems in my case:
.doc
.ppt
and .xls
,what are the correct MIME type? I have tried some ways, but they all fail. In fact we can use application\/.*
, but it's not safe.waiting for you guys reply.
turtlekey not sure about the mime stuff, but the filename should usually be preserved. It seems like one of the file got a non-uuid filename so it's working at least for that one. What browser are you using to upload the files?
If you want one link per line, you could use custom CSS to set display:block
to the links.
clarkwinkelmann
Thanks for your reply.
I use Chrome
to upload
clarkwinkelmann
I found this extension don't support to preserve Chinese filename, so any solution?
turtlekey we have a few issues about that on GitHub, but no easy solution. There's a limitation at both the filename on disk and the label we can show in the interface with the current solution FriendsOfFlarum/upload207
s1-ranjan you can use the "CDN URL" option in the settings to configure the URL that should be used instead of the normal base URL. This works for any adapter, including local.
I am wondering with one question with this extension, I wish to define the upload folder to be delivered from a subdomain, in order to improve the page loading speed, but I am not able to figure out how to achieve this result any working solution can be of great help...
clarkwinkelmann you can use the "CDN URL" option in the settings to configure the URL that should be used instead of the normal base URL. This works for any adapter, including local.
What should be the base of the subdomain /assets or /assets/files ?
s1-ranjan with the local adapter, /assets/files/<filename>
will be added after that CDN URL, and defaults to the Flarum base URL if no CDN URL is provided.
clarkwinkelmann whenever I upload any image, I am getting this output
[upl-image-preview url=/assets/files/assets/files/2020-08-30/1598821057-530685-english.png]
whereas the expected result should have been something like
[upl-image-preview url=/assets/files/2020-08-30/1598821057-530685-english.png] to work properly, I think this is a bug in this plugin.
s1-ranjan what did you set as the CDN URL? Do you have a protocol and domain appearing in front or is it really just a path without domain name?
clarkwinkelmann Today I have seen my issue has been resolved, it is working normally as aspected well regarding your question I have entered the following value for CDN URL
Content Delivery URL (prefixes files): /assets/files
Till yesterday the URL of the uploaded images was :
[upl-image-preview url=/assets/files/assets/files/2020-08-30/1598821057-530685-english.png],
but today I find the uploaded images are using
[upl-image-preview url=/assets/files/2020-08-30/1598821057-530685-english.png]
In both situations the URL has not used or reflecting the protocol or domain name in front, i.e., it is using a path without a domain name...
s1-ranjan in Content Delivery URL (prefixes files) you're supposed to enter something like https://my-special-other-subdomain.domain.tld
. FoF Upload will then build a URL by adding /assets/files/filename.ext
after the provided value.
The value should be a fully qualified domain name. Using relative paths might work but that's not the intended usage.
clarkwinkelmann I am not able to figure out what should be the root folder for this new subdomain, as of now the public folder is been used as the root folder of the main domain, and the location of the assets folder is in the public folder, hence should the very same public folder be used as the root folder for the subdomain, if that'll be the situation then it's most likely the website can be served from two different URL i.e., one from the main domain and other from the subdomain.
for imgur option, are you able to use this with a forum with ads? https://imgur-apiv3.p.rapidapi.com/ ?
Thanks for any clarification
userb you will have to inquire to Imgur if you have questions about their terms of use.
This extensions uses Imgur's default API, and I think you can use either a free or pro API key with it.
If you want to send files to an unsupported endpoint, you could create your own adapter and connect it via the local extend.php
. This will require a bit of digging since we're lacking documentation on how to create additional adapters, but the code was made to accept customer-provided adapters.
clarkwinkelmann if possible than I suggest putting a notice? I'm also not sure whether the img is deleted on imgur side if the post is deleted or a client id is banned.