Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I select an image, I click upload.
The image doesn't upload and gives
Upload Error: 403
What could be wrong? Thanks.
Comment | File | Size | Author |
---|---|---|---|
#9 | addsource.txt | 51.22 KB | russew |
Comments
Comment #1
grandcat CreditAttribution: grandcat commentedYou should use 6.x-1.1-beta3 version. Are there the same problems?
Comment #2
grandcat CreditAttribution: grandcat commentedImportant
You also have to give the user the permissions to "mass upload images", otherwise 403 is sent. But it could also be a session problem. Try to log off and login again.
Comment #3
Flying Drupalist CreditAttribution: Flying Drupalist commentedMy mistake, I am on beta3.
I'm also on User1. I tried to log out and in, I'm getting the same error.
Comment #4
grandcat CreditAttribution: grandcat commentedPlease let me more know about your used browser, Flash version, OS (operating system) and the server configuration. Otherwise, it's difficult to give a concrete response.
Comment #5
Flying Drupalist CreditAttribution: Flying Drupalist commentedI am using Opera, Firefox, latest 9... flash, Windows XP. I am on PHP5 and MYSQL4 and apache. Is there anything specific you want to know?
Comment #6
grandcat CreditAttribution: grandcat commentedThis should work fine, have you enabled "clean urls"? If not, try to configure it so that it works. It's possible that Flash Player has problems with a construct of "?q=fupload/flash". But I'm not sure.
Comment #7
russew CreditAttribution: russew commentedI get the same error. Clean URLS enabled. I am using Firefox, latest 9... flash, MAC OS X. I am on PHP5 and MYSQL4 and apache. It shows the progress bar on the first upload and give the 403 error. Then I add other files to upload and it doesn't show the upload bar again.
Comment #8
grandcat CreditAttribution: grandcat commentedMac OS X now? Why not Win XP with Clean URLs, Firefox, latest Flash 9, PHP5, MySQL 4/5? Does this work? It should.
But try to create a new user, give him the permission to "mass upload images" & to "edit captions" and then, login, try to upload images.
P.S.: Please give me the source code of the page "node/add/image". So it's easier to find the problem.
Comment #9
russew CreditAttribution: russew commentedIt didn't work, here is the file you requested. It is on a sandbox site if you want to take a closer look.
Comment #10
grandcat CreditAttribution: grandcat commentedAh, I suspected the problem, but you should not use devel version yet:
PHP Session ID keeps empty, that's the problem. But nobody else has this problem.
Normally, $user->sid should contain the sessionid.
Try to create a block which allows to execute PHP and insert the following lines:
What is returned?
If you use dev, you should now clear the whole cache and disable & enable again image_fupload module that it works.
Comment #11
true-pal CreditAttribution: true-pal commentedsame problem here,
after installation of 6.x.1.1-rc1 the module worked fine.
Then I had installed the Photos Module (http://drupal.org/project/photos) which uses the swfupload module too....
Maybe there is the reason for the 403 Error? (Clash of two different swfupload installations)
Someone else with the same history?
@grantcat
O.T. How can I enable the PHP filter in blocks? There are only the filters TEXT and HTML but I miss the PHP filter (which I always had in Drupal 5.x) ??? :-(
Comment #12
grandcat CreditAttribution: grandcat commentedYes, you're right, my module conflicts with album module at the moment. I will have to work out why this happens. You got the reason for the problem, thanks. I will work on it =)
Comment #13
grandcat CreditAttribution: grandcat commentedOh god, album modules has a very "nice" PHP coding style which overwrites the $user variable and voilà, session id will be deleted => 403 error. I will create an issue for album module ;-)
Comment #14
true-pal CreditAttribution: true-pal commentedViel Glück :-)
Gruss aus Munich
Jürgen
Comment #15
grandcat CreditAttribution: grandcat commentedOK, I wrote now a little workaround for that, so that it will work, not depending on photo module (or also other modules) being enabled or not.
Fixed in CVS HEAD. Should be in devel version tomorrow ;)
Comment #16
grandcat CreditAttribution: grandcat commentedIch werde es schaffen =)
Gruss zurück,
Stefan
Comment #17
Anonymous (not verified) CreditAttribution: Anonymous commentedAutomatically closed -- issue fixed for two weeks with no activity.
Comment #18
tevih CreditAttribution: tevih commentedHas this fixed the problem for others? I see this is an old ticket, but I am having the same issue trying to use it with Album.
Comment #19
grandcat CreditAttribution: grandcat commentedDon't reopen such old issues. Your problem doesn't affect this issue exactly.
Comment #20
naim shaikh CreditAttribution: naim shaikh commentedI just faced the same problem with SWFupload module where it was working properly on one server and doing exactly opposite on other one. I was getting 403 error as 'server error'.
I searched on google and I found this code to put in .HTACCESS file.
Here is the code:
I got this code from this url:
http://forum.joomla.org/viewtopic.php?f=431&t=265427&p=1216787
After updating my .HTACCESS file with the above code , My problem resolved.
Comment #21
castawaybcn CreditAttribution: castawaybcn commented#20 worked for me too, thanks a lot!
Comment #22
castawaybcn CreditAttribution: castawaybcn commentedwell, this is surprising. I found my .htaccess modified today:
Any help will be most welcome, I just don't know what to do
Comment #23
grandcat CreditAttribution: grandcat commentedPlease contact your provider. It seems that either mod_sec isn't installed or they don't like that it will be deactivated.
Comment #24
castawaybcn CreditAttribution: castawaybcn commentedthanks grandcat,
it seems mod_sec is not installed on my shared host, do I have any chance of succeeding without it?
Comment #25
grandcat CreditAttribution: grandcat commentedIt's better if it isn't installed. Nevertheless, you should contact your hoster. Probably, there's another thing which blocks the connection.
You should also check your Drupal settings and set your site online.
Comment #26
soyarma CreditAttribution: soyarma commentedIf you are unable to turn off mod_security, download the 'persistent login' module and then when logging in, check off the 'remember me' button. This will drop a cookie and then instead of getting a 403 (access denied) persistent login's cookie keeps you logged in and the images upload.
Comment #27
manoloka CreditAttribution: manoloka commented#20 worked for me too :)
Many Thanks
Comment #28
munyiva#20 worked for me with a small modification
SecFilterEngine Off
SecFilterScanPOST Off