Search found 14 matches

by Mikem
Tue Aug 02, 2011 5:29 pm
Forum: Premium Items
Topic: Secure File Upload Class - Problem
Replies: 28
Views: 14486

Re: Secure File Upload Class - Problem

Well I am setting a limit of 10 mb per file and there's 3 files, so that's 30mb max. Now I though the script would block the post process or is it? in case any file is above 10MB, say a user tried to upload a 10GB file, then should I set set php max memory etc to more then 10Gb so the php upload/you...
by Mikem
Mon Jul 25, 2011 9:15 pm
Forum: Premium Items
Topic: Secure File Upload Class - Problem
Replies: 28
Views: 14486

Re: Secure File Upload Class - Problem

Yeah I can, but the point being here to make sure it returns an error if the user attemps to upload a file that's too big.
by Mikem
Mon Jul 25, 2011 3:18 pm
Forum: Premium Items
Topic: Secure File Upload Class - Problem
Replies: 28
Views: 14486

Re: Secure File Upload Class - Problem

Still the same thing, if there is a file with a bigger filesize the the maximum limit it'll just return to the file selection form, empty. Also on my form there user can leave the upload form empty, its optional to attach documents if the user wants it, I just need it to return the error if the file...
by Mikem
Sun Jul 24, 2011 3:29 pm
Forum: Premium Items
Topic: Secure File Upload Class - Problem
Replies: 28
Views: 14486

Re: Secure File Upload Class - Problem

Hi, sorry to bug you again, but I am having a little problem. Everythings works perfectly except the file max size, basicaly if the file size is superior to the one set, it won't return an error, wont upload either of course, but it just returns to the upload page with all forms reset :/ [syntax=php...
by Mikem
Sat Jul 16, 2011 12:33 pm
Forum: Premium Items
Topic: Secure File Upload Class - Problem
Replies: 28
Views: 14486

Re: Secure File Upload Class - Problem

Well it seems " echo 'files/'.$upload->name.$upload->name;" was causing the problem, its working properly now, finally.

Thanks a lot for your time and support.
by Mikem
Sat Jul 16, 2011 10:37 am
Forum: Premium Items
Topic: Secure File Upload Class - Problem
Replies: 28
Views: 14486

Re: Secure File Upload Class - Problem

Allright! uploading images now works =) However I am now trying to allow uploading these filetypes only: zip,rar,doc,docx,pdf Also I am limiting the max filesize to 10MB. Right now it doesn't work, it justs returns to the upload file selection and no error message. Here's what the code looks like at...
by Mikem
Thu Jul 14, 2011 7:18 pm
Forum: Premium Items
Topic: Secure File Upload Class - Problem
Replies: 28
Views: 14486

Re: Secure File Upload Class - Problem

Same error, I think I am just gonna go find another uploader now, thanks though.
by Mikem
Thu Jul 14, 2011 6:49 pm
Forum: Premium Items
Topic: Secure File Upload Class - Problem
Replies: 28
Views: 14486

Re: Secure File Upload Class - Problem

.jpg

I tried with others .jpg and I am also getting this different error:

Code: Select all

string 'application/octet-stream' (length=24)

Error: E_SIZE


Anyway I don't want the uploader for pictures, but to upload some file types (.rar,zip,.doc,.pdf,.docx..)
by Mikem
Thu Jul 14, 2011 6:29 pm
Forum: Premium Items
Topic: Secure File Upload Class - Problem
Replies: 28
Views: 14486

Re: Secure File Upload Class - Problem

Sorry about my stupid mistake >.<

I am now getting this:

Code: Select all

string 'application/octet-stream' (length=24)

Error: E_DISALLOWED_TYPE
by Mikem
Thu Jul 14, 2011 5:13 am
Forum: Premium Items
Topic: Secure File Upload Class - Problem
Replies: 28
Views: 14486

Re: Secure File Upload Class - Problem

Allright thanks, this is what I am getting:

string '' (length=0)

Error: E_DISALLOWED_TYPE
by Mikem
Wed Jul 13, 2011 7:11 pm
Forum: Premium Items
Topic: Secure File Upload Class - Problem
Replies: 28
Views: 14486

Re: Secure File Upload Class - Problem

Thanks for the quick reply!

So I included mime_content_type.php in example.php and enclosed the (mime_content_type text with <?php ?> also corrected "fase" to "false" but I am getting the error:

Error: E_DISALLOWED_TYPE
by Mikem
Wed Jul 13, 2011 6:09 am
Forum: Premium Items
Topic: Secure File Upload Class - Problem
Replies: 28
Views: 14486

Re: Secure File Upload Class - Problem

boolean false

boolean false


Seems like that means these are not available?

Anyways if its really too hard to get it working, I would rather just have the disk space check removed, though its security issue.
by Mikem
Tue Jul 12, 2011 8:05 pm
Forum: Premium Items
Topic: Secure File Upload Class - Problem
Replies: 28
Views: 14486

Re: Secure File Upload Class - Problem

I am using the default setup which comes with your class and unpacked everything in the server root, so the path should be right. www us my root folder and contains: example.php secure_upload.class.php files (folder) [syntax=php] <?php error_reporting(E_ALL & ~E_STRICT); if (isset($_FILES['image...
by Mikem
Sun Jul 10, 2011 3:50 pm
Forum: Premium Items
Topic: Secure File Upload Class - Problem
Replies: 28
Views: 14486

Secure File Upload Class - Problem

Hi, Just got the class and I am getting two errors: Strict Standards: Only variables should be passed by reference in D:\EasyPHP\EasyPHP-5.3.6.0\www\secure_upload.class.php on line 49 Warning: disk_free_space() [function.disk-free-space]: The system cannot find the path specified. in D:\EasyPHP\Easy...