Upload of images fail when using the SWFUpload module. Error message in the log is access denied and shows that the SWFUpload module is running as Anonymous user even when running as Admin or an authenticated user. Changing the Permissions to allow uploads for Anonymous users does allow SWFUpload to work but obviously that is not a good solution.

Comments

eastcn’s picture

1)Please use the 1.2 version. That is a stable version.
2)SWFUpload the use of authority is "create photo".

	$items['photos_swfu/upload'] = array(
	  'page callback' => 'photos_swfu_upload',
		'access callback' => 'user_access',
		'access arguments' => array('create photo'),
		'type' => MENU_CALLBACK,
	);

3)Access denied, perhaps the problem is server settings, you can take a look at this discussion: http://drupal.org/node/299464#comment-986624

streetpd’s picture

Status: Active » Fixed

Yes, version 1.2 I understand is the stable version which works fine for me. I was interested in following your work in the development version. I don't have a production site so don't mind the problems.

Regarding the reference to http://drupal.org/node/299464#comment-986624, I have those mods already in place. These mods have always worked in the past for SWFUpload.

I just removed the Create Photo permission from Anonymous User and now SWFUpload is working for Authenticated users, makes no sense.

Thank you for this module, very nice work!

kecinzer’s picture

I have the same problem with 1.2 version. After I upgrade form 2.0beta

eastcn’s picture

I do a little test: I found that this is the browser cache flash lead to problems. When I upgraded the new version, SWFUpload does not work, after the removal of the cache, SWFUpload restored to normal.

Your site is restored to normal?

streetpd’s picture

Yes, SWFUploads are now working fine, thanks for checking.

kecinzer’s picture

What cache you mean? I tryed clear Drupal cache and turn cache off and still not working :(

eastcn’s picture

Perhaps this is the case led to the problem, see here: http://drupal.org/node/310245#comment-1017961

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.