[Return] [Catalog]

1 Admin 2018-05-12T20:57:22 [ImgOps] [iqdb]
File: 1414979226053.jpg (JPEG, 384.05 KB, 1412x1000)
Please use this thread to report bugs and give feedback. Or start a new thread for more active discussion.
Feel free to also report issues directly on our GitHub:
https://github.com/4taba/4taba
»
167 Anonymous 2019-08-20T03:02:47 [ImgOps] [iqdb]
File: __kazami_yuuka_and_wriggle_nig… (PNG, 172.62 KB, 593x805)
How long? How long?
How long must Wriggle suffer?
»
168 Anonymous 2019-08-21T04:26:40
I don't know. Why is Wriggle suffering?
»
169 Anonymous 2019-08-21T04:48:37
>bothering to sage when everyone on /all/ can read your post anyway
»
170 Anonymous 2019-08-21T20:57:38 [ImgOps] [iqdb]
File: 58012693_p0.png (PNG, 764.43 KB, 856x1200)
I get an error 500 when I try to post webms.
»
171 Anonymous 2019-08-21T21:03:45 [ImgOps] [iqdb]
File: sand-projection.mp4 (MP4, 431.3 KB)
Trying with a mp4
»
172 Anonymous 2019-08-21T21:06:59 [ImgOps] [iqdb]
File: digicharat-op.webm (WebM, 3.65 MB)
Or maybe it was the webm that had a problem, I dunno.
»
173 Anonymous 2019-08-26T20:48:07
Page refresh on posting only works with javascript enabled:
<!DOCTYPE HTML><html><head><meta charset="utf-8"><script>function redirect(){window.location.replace("/test/39");}</script></head><body onload="redirect()"><h1>Post submitted successfully...</h1></body></html>

Instead, you could use a HTML equivalent (https://www.w3.org/TR/WCAG20-TECHS/H76.html):
<!DOCTYPE HTML><html><head><meta charset="utf-8" http-equiv=refresh content="2;URL=/test/39"/></head><body><h1>Post submitted successfully...</h1></body></html>

The number before ";URL" is the amount of seconds you want that page to show up for. You could set it to "0" and if the database is fast enough it'd pretty much be seamless, but I like the charm of those refresh messages. The second page is also 49 bytes shorter, if you care about that sort of thing.
»
174 Anonymous 2019-08-26T20:50:18
^ I just got an "ERR_BLOCKED_BY_XSS_AUDITOR" posting that, probably just another webengine oddity.
»
175 Anonymous 2019-08-28T20:37:14
>>173
Fixed, thanks for the suggestion.
>>174
Could be, all the search results I see for that error mention chrome. Another possibility is cloudflare doing something. Sometimes they block certain certain posts to protect their users I guess. A while ago it was impossible to post the text "/etc/hosts", but it looks like they allow it now.
»
176 Anonymous 2019-09-01T06:44:46
Add RSS
»
177 Anonymous 2019-09-06T23:05:16
RSS sounds fun. I've seen it on some textboards and it's cool to have if you're not in the habit of visiting 15 different websites every day.
»
178 Anonymous 2019-09-09T00:30:12
>>174
[code]
test
»
179 Anonymous 2019-09-09T00:30:39
>>178
test
»
180 Anonymous 2019-09-09T00:31:16
>>160
How do I do this? Like this poster's "nice" subpost/reply?
»
181 Anonymous 2019-09-09T07:00:56
>>160
How do I do this? Like this poster's "nice" subpost/reply?
»
182 Anonymous 2019-09-09T11:58:12
>>181
I don't understand your confusion. The post you're linking to is literally the answer to your question.
Anonymous (Tue)Sep 10 2019 01:45:22
I hadn't even read the post, I just replied to the first one I saw with a "nested" reply.
Thanks, man.
»
183 Anonymous 2019-09-13T18:43:40
>Error: File decompresses to larger than the maximum filesize. Please fix your zip file and try again.
?????

The file in question's 5.66mb. A 7z version I couldn't upload was 1.45mb.
»
184 Anonymous 2019-09-13T19:39:19
>>183
That's the decompression bomb detection. For example, according to wikipedia it's possible to create a 42 kilobyte zip file that decompresses to 4.5 petabytes, so I don't think disabling it is acceptable.
But maybe it isn't completely accurate for certain kinds of zip files? Would you mind uploading it somewhere else and posting a link so I can take a look at it?
»
185 Anonymous 2019-09-13T20:06:05
Decompressed size is ~30mb: https://0x0.st/zycB.zip
So how about the 7z file, do you need to add the MIME to some kind of list?
»
186 Anonymous 2019-09-13T20:43:44
>>185
Well that explains it then. I don't know any imageboard that allows 30mb uploads.
Just double checked and the max size allowed here is 12mb, that includes the total final decompressed size of zips.
I'm open to discussion on raising the max size, but I think 12mb is already pretty big.
»
187 Anonymous 2019-09-13T22:37:30
Personally I think it'd be better not to do any kind of filechecking, it's just not the admin's responsibility and it gets in the way. As long as a file takes virtually nothing to keep on the server, and it's nothing inherently illegal, then it should be allowed to stay.
»
188 Anonymous 2019-09-14T01:56:19
>>187
That has nothing to do with file size though. What if I just let someone upload a 20GB file? Then there's 0 disk space left on the server.
»
189 Anonymous 2019-09-15T11:57:10
There should be a no images subdomain or directory, sometimes I want to scroll /all/ without octopus rape and toddlerkon, as much as I enjoy it.
»
190 Anonymous 2019-09-16T21:53:51
>>188
I think he meant checking the extension and file header for upload to allow only images. There are problems you run into if you allow just any kind of file willy nilly. I don't think you could run into too many problems by allowing text files if you had reasonable file size restrictions though.
»
191 Anonymous 2019-09-17T15:11:04
>>190
What I was getting at was that any file should be allowed as long as it's small enough, but I guess he's got to check that there's no child pornography or anything and unpack them.
»
192 Anonymous 2019-09-17T18:56:30
>>191
Oh no, any file is already allowed inside the zip archives. It doesn't do any checking or modification of those files other than to detect the overall filesize before unpacking, and it needs to have a "main.html" file to act as the entry point when someone clicks the thumbnail.
Those are the only requirements.

I'm a bit undecided about what's best though. We used to allow any file upload whatsoever regardless of type. I disabled that in the last update but I think I want to go back to it.
I may just add some warning at the top of the page that says files are unmodified and file extensions can't be trusted, download at your own risk or something.
»
193 Anonymous 2019-09-18T14:45:24
>>192
Why does the site unpack the file?
»
194 Anonymous 2019-09-18T18:00:54
>>193
You know we're using zip files specifically for flash-like HTML5 applications here right?
If it doesn't unpack it then it can't use it. For example:
http://4taba.net/res/brd/f/32/1500097836827/
There's no way to do that without unpacking it.
»
195 Anonymous 2019-09-18T18:20:05
>>193
>>194
Sorry if I just assumed you knew that already. Your questions make perfect sense now.
Obviously there would be no checks for final unpacked size if it weren't for this.

You could use other archive types and it won't do any checks on it (as long as the archive itself is 12mb or less).
Perhaps we could use the ".html5" extension specifically for zip files that you want to be unpacked (literally just zip files renamed to .html5) but if you leave the extension as ".zip" then it won't unpack it?
That would be a good compromise.

Also I think after the last update there's a bug right now where the site doesn't allow filetypes it can't detect. If someone sees that let me know and I'll try and fix it soon.
I'm working on a totally new codebase for the site right now, so the new one definitely will allow any filetypes to be uploaded.
»
196 Anonymous 2019-09-20T19:45:43
>>195
So you like upload websites through zips? That's pretty weird. You should probably use some checkbox for that next to the upload button or something.
»
197 Anonymous 2019-09-20T22:14:51
>>196
It's supposed to be a sort of replacement for flash which is dying. Adobe isn't even going to be updating it anymore.
If you can think of a better way I'm all ears. Flash lets people upload a bunch of resources in 1 file and runs an application. The only way I can think to simulate that is by uploading an archive with a standard main.html entry point.
It's worked fairly well so far for those who've used it.
A checkbox is probably unnecessary if I just change it to require a ".html5" extension. Nobody will have files with that extension unless the intend to upload it for this special purpose.

I wonder if a different archive type would be better though. I think zip has problems with character encodings. .tar.gz is good but I don't know if windowsfags will have a tool for that. Maybe 7z?
»
198 Anonymous 2019-09-24T09:59:49
>>197
7z can do .tar.gz just fine.
»
199 Anonymous 2019-09-24T10:02:02
>>197
Bad wording on my part. Windows has 7zip, which can do .tar.gz too.
»
200 Anonymous 2019-10-04T11:34:31
I noticed that on /f/ the urls don't link to the files anymore, just a page where the flash is embedded. This makes it difficult to download anything from there.
»
201 Anonymous 2019-10-04T16:56:56
>>200
I'm not seeing it. All files on 4taba are given new, somewhat inconvenient extensionless filenames. Are you sure it's not that?
»
202 Anonymous 2019-10-04T22:59:19
>>201
Oh you're right. My browser was simply insisting that they were "htm" files because I didn't add the extension on download.
»
203 Anonymous 2019-10-05T00:26:21
>>202
The new update to the site will restore the file extensions.
»
204 Anonymous 2019-10-05T21:30:32
>>203
What about the filenames? Are the hashes needed for the board to work? I know 8ch does this thing where they have hash filenames server-side, but saving the image would give you the filename in the download by default.
»
205 Anonymous 2019-10-06T07:50:24
>>204
The filenames have always been preserved in the database, so that's something that could be done if enough people want it. But timestamps also have some advantages, such as no naming conflicts when you save something, and they're also fairly standard across imageboards.
»
206 Anonymous 2019-10-06T11:06:07
>>205
It's mostly standard to preserve file names for flash files on imageboards. You want to keep those because opening up a bunch of flash files is tedious when you're looking for a specific one; nobody is going to memorize a bunch of timestamps and there obviously isn't a way to easily get thumbnails for them.
»
207 Anonymous 2019-10-06T16:03:36
>>206
How would duplicate file entries be handled anyway? Files are saved in per-thread directories, so I guess you could just say no files in the same thread can have the same name, and throw an error otherwise.
Anyway, I think I'm just going to leave the current method as is until after the update at least. It's probably not a good idea to change code vital to serving files when we're so close to switching the site to a completely new codebase. There's probably going to be enough bugs already without file naming complications.
But this idea is something that can always be implemented at any time in the future.
»
208 Anonymous 2019-10-06T23:42:56
>>207
>Files are saved in per-thread directories, so I guess you could just say no files in the same thread can have the same name, and throw an error otherwise.

4chan does this but the directory is the board. Other chans do it differently, especially because they have threads where you can post flashes inside them. I've seen one that associated the filenames as secondary information while still using timestamps to keep different files around, I don't know how though.
»
209 Anonymous 2019-10-07T01:35:35
>>208
>I've seen one that associated the filenames as secondary information while still using timestamps to keep different files around, I don't know how though.

I'd guess it saves the files with timestamps but lets the users request files with the filename, then it looks up the name in the database to get the timestamp and serves the file that way. But of course your browser doesn't know any of that happens and it just thinks it access the filename.
That's doable. The best way to implement that would probably be to have file links include the post number, that way the database doesn't have to search for the filename and won't hit any conflicts.
Now that I think about it it would be pretty easy.
»
210 Anonymous 2019-10-07T02:19:15
>>209
https://www.w3schools.com/TAGS/att_a_download.asp
Maybe this will work? download="actual_filename.xxx"
»
211 Anonymous 2019-10-07T02:23:40
It works here:
https://www.w3schools.com/TAGS/tryit.asp?filename=tryhtml5_a_download2

But it doesn't work with my own test, weirdly enough:
data:text/html;,%3Ca%20href=http://4taba.net/res/brd/meta/81/1526188409147%20download=%22new%204taba.png%22%3Enew%204taba.png%3C/a%3E

I don't know if it's because I'm linking an external site, or maybe it'll only work on a thumbnail or something (that'd be pretty weird).
»
212 Anonymous 2019-10-07T02:25:16
Nevermind, it works. Only when I right-click and select "Save Link", not when I use this browser's built-in downloader.
»
213 Anonymous 2019-10-07T18:20:23
>>212
I can only assume that you haven't put those changes through yet. As one example, https://22chan.org/f/ appends "&=FILENAME" to the end of each file. That might work as a quick and dirty solution, which isn't required here, but you might want something more elegant.
»
214 Anonymous 2019-10-07T19:10:50
>>210
>>211
Actually that makes me think that we could do both. Since setting that download attribute seems to prevent it from opening the image for viewing inside the browser itself anyway, we could make it so that clicking the thumbnail will open the image inside the browser as normal, but clicking on the filename link above the thumbnail could have the download="actual_filename.jpg" attribute.
If that works then that's an easy 10 second fix. I'll do some testing with a few different browsers and if it works then I'll add it to the new server.

By the way, the new site is basically ready to deploy. But I'm also switching hosts from A2 to DigitalOcean (which has more up-to-date servers, A2 is still using kernel version 2 on their VPS's), so the site may go down some time tonight or tomorrow, and be off for several hours as I move all the data to the new server and update the DNS info.
»
215 Anonymous 2019-10-07T22:57:33
>we could make it so that clicking the thumbnail will open the image inside the browser as normal, but clicking on the filename link above the thumbnail could have the download="actual_filename.jpg" attribute.
That sounds good, it would've been bad if you couldn't expand the thumbnails anymore. I don't think left-clicking on a normal link will download it, so this is basically the way it'll be in the end.
>click on thumbnail

Media expands.
>(middle) click on link, middle click on thumbnail

Media opens in new tab. (non-original filename if user saves here)
>right click → save on link

Image saves with filename.
»
216 Nameless 2019-10-09T03:43:57
>>213
>"&=FILENAME"

meant "&name=FILENAME"

[Return] [Catalog]
Delete Post:
OptionsPassword
Name
Comment
File