-
Posts
6206 -
Joined
-
Last visited
-
Days Won
12
Content Type
Profiles
Forums
Gallery
Everything posted by tomturd
-
Nah theres hardly any, you'll just have to take what you can from the net and figure the rest out for yourself
-
It checks the file extension on the server and client side. Need to catch those errors on TrialsTube, will add it in for the next release - keep forgetting.
-
Is /home/sites/bikearea.co.uk/uploads/ correct? Sure your username shouldn't be in there somewhere? Also /uploads/ needs to be chmodded to 777.
-
How big was the drop that ashton did onto sand in MBUK many years ago? Looked about the same, but then my memory may be skewed slightly, 1m drop was big to me back then
-
I Can See The World - Taking Photography To New Heights
tomturd replied to M-i-t-c-h's topic in Website Updates
It means in my opinion, shouldn't really use text talk ahem :$ How about bleeding edge technology? Maybe too geeky -
Cross posted in news... is this news or advertising..
-
No I got em out of photoshop. Thank you web 2.0 gradients pack for making me look like I know how to design stuff- yet again.
-
Ok its been updated again. You now have 2 different options on how to upload a video. So if you have trouble using one method, click 'use alternative uploader' Let me know if you have any problems!
-
http://www.bmx-forum.co.uk http://www.bmx-forum.co.uk http://www.bmx-forum.co.uk I haven't rode trials for years :$ , BUT I did fix my bike the other day so at least it works now and theres a lot more chance I'll actually ride it..
-
Oops sorry guys, I was playing with it the other day and messed it up. It should be fixed now.
-
Wierdly I order quite a bit of stuff from dealextreme (wicked site), often at values over £32, and I know of others who do the same and they never seem to get stopped by customs. Dealextreme is in HongKong by the way. The second I got something from America I was made to pay £11 for tshirts worth £20.
-
I've also just done a bit of testing. Tried to upload file.gif - it said no dice, its not a video file, it is infact an image file (very true). Renamed it to file.mpeg and it breezed through. Proof that checking mime types is pretty useless.
-
That little bit of code I pasted just grabs the extension of a file for you - you'll still need to check it against an array of allowed extensions. What I'd do is... Use php to move the uploaded file to a directory outside of public_html (eg /home/josh/my_uploaded_files/) move_uploaded_file ($_FILES['Filedata']['tmp_name'], /home/josh/my_uploaded_files/uploaded.mp4 ) Thats your files all stored out of the way. Now to access them (force the user to download) header("Pragma: public"); // required header("Expires: 0"); header("Cache-Control: must-revalidate, post-check=0, pre-check=0"); header("Cache-Control: private",false); // required for certain browsers header("Content-Transfer-Encoding: binary"); header('Content-Type: application/force-download'); header("Content-Length:12345); header('Content-Description: File Transfer'); header('Content-Disposition: attachment; filename=uploaded.mp4)); readfile('/home/josh/my_uploaded_files/uploaded.mp4);[/code] You'll need to use a bit of wizardry to get that working. Although, saying all that. For the time being I'd just concentrate on checking the file extension (forget the mime type), moving the uploaded file to the directory you want it in, and then creating a page to access all those uploaded files. Ignore the security stuff until you've figured out the easier stuff first. You don't need to make FTP accounts. Just registered for your site - hope you have lots of bandwidth!
-
How about I upload an exe file (called i_will_screw_your_server.exe), give it a fake mime type of an image, and upload it? I believe you'd be more screwed than doing it your way as at least mine would be treated as an exe by the server from the outset due to its extension already being in place file extensions. Your best bet (IMO) is to check the file extension, store the uploaded files in a non web accessible directory and then access them through php, and use php to force it to be the mime type of the extension it claims to be... Rather than trusting the mime type from the outset, without checking the extension.
-
I think danny means have you tried it using a gif or something, does it return the correct type then? You shouldn't really rely on the mime type anyway as the results can vary between servers. You're probably better off checking the extension. Maybe both but you might have compatibility problems between servers. This is a pretty handy way to get the extension of an uploaded file $ext = array_pop(explode(".",basename($_FILES['Filedata']['name'])));
-
Its on sky news right now. TF got it first though. TF officially > Sky news.
-
Kinda disappointing I didn't experience it
-
Nothing here.. yet. At least I'll be able to say I heard it here first.
-
Would you be going there just to get biketrial bits? It cost me £400 for a 1 way flight from Beijing. I'd guess you'd be looking at £600 return if you book early, you'd have to buy a lot of stuff to end up saving money. If your going there for a trip anyway then it could offset your costs quite nicely though. Judging by the website they speak a bit of english, even if they don't you'll still be able to buy stuff. Make sure you haggle. My technique in china was to offer 10% of what they were asking for..
-
The tick is meant to be a subliminal message to make them think 'YES! this is a good company' Seriously though, sadly most people don't want to do anything for nothing, especially not for a business that's planning on making a profit.. (for anyone wondering, that's what text looks like when you apply all the photoshop effects to it)
-
I had a go on one, the touch screen was crap... thats about all I remember.
-
I Can See The World - Taking Photography To New Heights
tomturd replied to M-i-t-c-h's topic in Website Updates
I'd agree with what mark said. Just thought I'd have a quick look, IMO I'd change the font on the menu to be the same as the one in the main text - or the other way around, just for continuity. Also this made me look twice, couldn't figure out what it was for a while "We encorporate real cutting edge technology" For a start encorporate is spelled wrong which I didn't notice until I pasted it here, secondly - 'real' cutting edge technology? As opposed to fake cutting edge technology? Cutting edge technology alone is impressive enough, real or fake EDIT: gallery page - should have a loading bar really, they may load quickly for you as you will probably have them cached, but for a new user they take a couple of seconds to show up, and probably about a minute on dial up. -
What about people who post "+1"?
-
Just wondering, any troubles? I've released the code to other invision forum owners, getting some reports in of people not being able to upload. Anyone having similar problems here?
-
Chris, is it the stuff you'd likely learn in Uni (the stuff on the course I mean, not stuff that you learn in the work place)? I remember (well, as I'm about to reveal, I don't actually) learning networking to a silly (IMO) degree, down to packet routing techniques and all sorts (that I don't in fact remember - apart from BGP which did my head in and therefore sticks in my mind). It seems there are companies offering this training in 30 days, I don't really see how you can really learn that much in 30 days.. Otherwise I'd be quite gutted that I spent 4 years doing something I could have learned in 30 days (I heart brackets)