Simple Machines Community Forum

SMF Support => SMF 2.0.x Support => Topic started by: oroedel on September 19, 2014, 07:29:43 AM

Title: Attechements and slow internet connections
Post by: oroedel on September 19, 2014, 07:29:43 AM
I live in the 3rd world hidden in the forrests, that means my internet is VERY bad via 3G.

Often if I upload files bigger than some hundreds of KB I get a timeout error.

Is there a way to fix it? Exist an upload system/mod which works better (like OneDrive p.e.)?

Exist an a way to include OneDrive or other clouds in SMF as bibliotheca?

Can I upload files with FileZilla p.e. on the server e later use them like attachements?

Any ideas?
Title: Re: Attechements and slow internet connections
Post by: Kindred on September 19, 2014, 07:33:52 AM
Unfortunately, as far as I know, the answer is no to all of your questions....
Title: Re: Attechements and slow internet connections
Post by: margarett on September 19, 2014, 07:44:17 AM
To you last question, YOU as admin and owner of the space, can upload files via FTP and then link them in your posts (not like real attachments, though...). Other users can't (I mean, they can but you would need to give them FTP access to your server - bad idea :P )

Or you can ask your host to increase the time limits for the PHP script on the server ;)
Title: Re: Attechements and slow internet connections
Post by: oroedel on September 19, 2014, 09:41:22 AM
thank´s for quick reply.

just another question
in admin/attachements settings, you can click on configuere multiple attechments dir...
I clicked and got an error!?

The requested URL /forum/' . $scripturl . ' was not found on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
Title: Re: Attechements and slow internet connections
Post by: Kindred on September 19, 2014, 10:01:49 AM
Well, you obviously have your Main attachments directory misconfigured...
Title: Re: Attechements and slow internet connections
Post by: oroedel on September 20, 2014, 09:03:01 PM
is there an other local than "attachments settings" to configuere this?
Cause the entry there is ok, and I can upload attachments normal. No error. And it works.

Can it be, cause I migrated the fórum, but not the attachments?
I´m uploading the old/lost attachments in the messages and deleting the old entries in the messages. Which works normal.
Title: Re: Attechements and slow internet connections
Post by: margarett on September 21, 2014, 10:57:03 AM
I'd say there's something wrong with your files...

Quote from: oroedel on September 19, 2014, 09:41:22 AM
The requested URL /forum/' . $scripturl . ' was not found on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

Apache should never see $scripturl.  So that means that there's something icky with some of your files...
Title: Re: Attechements and slow internet connections
Post by: Ninja ZX-10RR on September 21, 2014, 12:37:21 PM
Or even mod_security? I have seen a few cases in which it was causing that "Additionally a 404 error bla bla..", could it be because of that? I could be wrong, of course.
Title: Re: Attechements and slow internet connections
Post by: Kindred on September 21, 2014, 01:24:17 PM
Ninja.. No.  The 404 error is only because his server has been configured to look for a specific file to display in the error but that file was not created.

Mod_security will generate 403 or sometimes 500 errors...

This case is very clearly, a badly edited file, because $scripturl should be parsed, or should never be used in a place where it is displayed as the actual variable.
Title: Re: Attechements and slow internet connections
Post by: oroedel on September 21, 2014, 08:05:51 PM
sp what I need to look for?
Which setting/command could be wrong?
Title: Re: Attechements and slow internet connections
Post by: margarett on September 21, 2014, 08:09:42 PM
Sources/ManageAttachments.php
Maybe you attach it so that we can take a look? ;)
Title: Re: Attechements and slow internet connections
Post by: oroedel on September 30, 2014, 05:09:36 PM
margarett, ManageAttachement.php will be modified? Isn´t it a standar comand? I didn´t found any individual settings in this file.
And if I understand the errar message right, there is a path setting problem.
Or I´m wrong?

Other question, can I upload attechements from a cloud/web? Like do with avatars or mods.
I tried to put a OneDrive share in the file box, if you select the file to upload, but he created a red[1] file.

I need something to upload attachements without uploading them ;-)
Is there a way/mod that allows the selection of attachements in the web?
Title: Re: Attechements and slow internet connections
Post by: margarett on September 30, 2014, 06:48:17 PM
No, there isn't. The only "attachments space" that SMF deals with directly is its own installation folder. Other than that, there is no real control so it can't be used as a proper attachments space.
You can upload your files anywhere you want to and link them directly.

But that's just it... :(
Title: Re: Attechements and slow internet connections
Post by: Arantor on September 30, 2014, 07:16:11 PM
The problem with creating such a thing is that if you're expecting the server to download it for you, there's all kinds of legal issues with such a thing. Individual pictures aren't *too* bad but anything more heavyweight is fraught with trouble.

Which is why no-one's done it, and even though I'm currently working on a gallery - and have the necessary skills, especially seeing that YouTube videos can be added 'as items' - I can't condone adding that myself to it for that reason.
Title: Re: Attechements and slow internet connections
Post by: oroedel on September 30, 2014, 07:58:35 PM
I think it is really unnescessary to download a file to your computer to upload it later to the forum.
The best way would be store it directly in a post, as link or attachement.

Back to my folder problem, what will I do? Use a "original" ManageAttachement.php?
Title: Re: Attechements and slow internet connections
Post by: Arantor on September 30, 2014, 08:18:46 PM
QuoteI think it is really unnescessary to download a file to your computer to upload it later to the forum.

Do you own the legal right to distribute those files? If the answer is no, then none of it matters anyway.
Title: Re: Attechements and slow internet connections
Post by: oroedel on September 30, 2014, 08:50:14 PM
public science studies.

But this is out of interest, cause I can download whatever I want and upload it to a forum. Copyright don´t matters, technically.

The fact is that my forum is a "biblioteca", and I don´t need the files on my pc and in the forum.
So it would be much easier to "transfer", via link, a text/book I found in the web to a topic in the forum.

Only a link doesn´t works, cause sites changes to much, we need the files "physically" in the forum.
Title: Re: Attechements and slow internet connections
Post by: Arantor on September 30, 2014, 08:51:42 PM
Sure it does. It's still a legal matter.

However... if that's the stance you're going to take, that copyright doesn't matter... have fun with this.
Title: Re: Attechements and slow internet connections
Post by: Kindred on September 30, 2014, 11:30:10 PM
it also doesn't matter how much you THINK it would be easier.
The basic answer is "no" the forum will not do attachments via URL. period.
Also, the forum will not do attachments via a third party server, without some significant coding (which we currently have no interest in doing)

Title: Re: Attechements and slow internet connections
Post by: oroedel on October 01, 2014, 11:32:09 AM
I said it doesn´t matter technically!
We don´t keep/spread material that we don´t have the right to.

Whar i mean is thta copyright is no argument to not implement this feature.
This feature would help us/who has bad internet connection. Or work is social/educational/ambiental and don´t have R$5000 to pay an satelite internet access.

So this feature would help us to spread (copyright) FREE KNOWLEDGE to people who live in 3rd world.

If you´re living in a "comfortble" 1st world, great for you, we´re not.
So it would be a HELP to implement this feature. A feature that always exists (avatar/mods), so why not with attachements.
Title: Re: Attechements and slow internet connections
Post by: Arantor on October 01, 2014, 11:51:02 AM
Because it is very, very different to what you think it is, that's why. Including there are some additional technical considerations regarding the server handling such things reliably. The legal barrier is just another side criteria making it even more unlikely to happen.
Title: Re: Attechements and slow internet connections
Post by: oroedel on October 05, 2014, 09:03:05 AM
OK, now I have to accept, if it is too complicated to implement.
The legal side, for me, isn´t an argument, you can always use a knife to make food or to kill.

But, is there no way to implement a more "intelligent" way to upload the files. I mean id OneDrive, FileZilla etc. can do the job, why not smf?
Title: Re: Attechements and slow internet connections
Post by: Kindred on October 05, 2014, 10:25:18 AM
because - whatever YOU may think about the legal implications -- WE, as the software designers have to think carefully about such things.

and, after we think about that we have to decide whether it is even worth the effort to do it.
Given that you are the first person to even ask about it, it doesn't seem like a highly desired functionality, and there are much better uses for our coding time and resources. (and, your demanding attitude about it is not encouraging anyone to help)
Title: Re: Attechements and slow internet connections
Post by: oroedel on October 05, 2014, 01:03:27 PM
I´m sorry that you feel offended, I only asked about a feature that would be important for me and poeple who have a slow internet connection.
I don´t want to discuss copyright issues cause this a question of law, not coding.

And remember we have a language "barrier" so please be kind with poeple who did not speak your "language" at all.