News:

Printed Amstrad Addict magazine announced, check it out here!

Main Menu
avatar_TFM

Upload of DSKs

Started by TFM, 21:03, 14 December 15

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

TFM

#25
Quote from: Gryzor on 19:21, 19 January 16
Oh sure, I'll just ask an employee, or maybe a junior temp to preside over temporary images, or resize them as needed.

Or one lines of code, like

If DATE = one_month_old THEN goto DELETE

;D




But no, you just have to define an upper size limit for pictures. Or just make some file-type unusable like DSKs.

TFM of FutureSoft
Also visit the CPC and Plus users favorite OS: FutureOS - The Revolution on CPC6128 and 6128Plus

Gryzor

Image file types can't be blocked because all are legitimate. Same goes with sizes (and we're going around in circles here)

Zoe Robinson

You might be able to get the server to automatically Zip a DSK file on upload. That would surely sort out the problem?


PHP file upload and zip on upload - Stack Overflow

Gryzor

Quote from: Zoe Robinson on 15:32, 21 January 16
You might be able to get the server to automatically Zip a DSK file on upload. That would surely sort out the problem?


PHP file upload and zip on upload - Stack Overflow


Unfortunately, it's not that simple. You have to accommodate SMF's peculiarities - hashing, temp and how it handles uploads and downloads. It could conceivably work, but I'm not going to mess with the forum's basic functionality. In the SMF forum they've been saying that a mod needs to be built for that. If someone is knowledgeable in SMF, I'm open to letting them try their hand.

Zoe Robinson

I'm busy for the next week or so but after that I'll see what I can do.

Gryzor

Aha! Interesting, thanks :)

Powered by SMFPacks Menu Editor Mod