# Upload php error 403

**URL:** <https://forum.kirupa.com/t/upload-php-error-403/264475>\
**Category:** flash\
**Created:** [June 26, 2008, 1:57pm UTC](https://forum.kirupa.com/t/upload-php-error-403/264475 "2008-06-26T13:57:40Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Genius\_cd](https://avatars.discourse-cdn.com/v4/letter/g/77aa72/32.png) [@Genius\_cd](https://forum.kirupa.com/u/Genius_cd)\
**Post date:** [June 26, 2008, 1:57pm UTC](https://forum.kirupa.com/t/upload-php-error-403/264475/1 "2008-06-26T13:57:40Z")

</div>

hey all.

i have a html file called index.html

```auto
<form enctype="multipart/form-data" action="uploader.php" method="POST">
<input type="hidden" name="MAX_FILE_SIZE" value="100000" />
Choose a file to upload: <input name="uploadedfile" type="file" /><br />
<input type="submit" value="Upload File" />
</form>

```

it links to a php

```php
<?php
$target_path = "uploads/";

$target_path = $target_path . basename( $_FILES['uploadedfile']['name']); 

if(move_uploaded_file($_FILES['uploadedfile']['tmp_name'], $target_path)) {
    echo "The file ". basename( $_FILES['uploadedfile']['name']). 
    " has been uploaded";
} else{
    echo "There was an error uploading the file, please try again!";
}
?>

```

working gr8… i set the permission of “uploads” folder to 777 to be able to upload without any error…

but here’s the problem!

i have an swf file (download it from [http://www.kirupa.com/developer/flash8/uploading\_fileReference\_pg1.htm](http://www.kirupa.com/developer/flash8/uploading_fileReference_pg1.htm) )  
and i linked it to the uploader.php.

when i upload the file… an error 403 occured !!!@#$!%!!!  
i don’t know y! anybody knows!??

please help!

---

<div class="post-metadata">

**Author:** ![Genius\_cd](https://avatars.discourse-cdn.com/v4/letter/g/77aa72/32.png) [@Genius\_cd](https://forum.kirupa.com/u/Genius_cd)\
**Post date:** [June 26, 2008, 6:35pm UTC](https://forum.kirupa.com/t/upload-php-error-403/264475/2 "2008-06-26T18:35:21Z")

</div>

finally i found the solution…

just create a file .htaccess and paste these line of codes inside it  
SecFilterScanPOST Off

that should do the trick! no error 403 !!!  
this is done in linux server

---

<div class="post-metadata">

**Author:** ![prg9](https://avatars.discourse-cdn.com/v4/letter/p/8dc957/32.png) [@prg9](https://forum.kirupa.com/u/prg9)\
**Post date:** [June 26, 2008, 9:49pm UTC](https://forum.kirupa.com/t/upload-php-error-403/264475/3 "2008-06-26T21:49:08Z")

</div>

[QUOTE=Genius\_cd;2349778]finally i found the solution…

just create a file .htaccess and paste these line of codes inside it  
SecFilterScanPOST Off

that should do the trick! no error 403 !!!  
this is done in linux server[/QUOTE]

You have reopened and posted the same 403 question in 9 OLD threads today

> **[kirupaForum](https://www.kirupa.com/forum/search.php?searchid=1276312)**
>
> Got a web design/development question or just want to hang out with the most awesome people on the planet? Drop on in!

Calm down with cross posting, and posting in any thread you find regarding upload/download 😑

Glad you got it working for your needs however 😉
