-
FileReference and https issues
I have built an uploader using Flash8's new FileReference class, which works perfectly under my http domain. Move it under https and I get this error:
onIOError: BookCover.pdf could not be uploaded (try uploading to jsp/asp/php scripts on a webserver)
I have tried :
System.security.allowDomain("mydomain.com.au","sec ure-mydomain.com");
Doesn't seem to help.
My https points to the same location, so the only thing changing is the domain name from http://www.mydomain.com to
https://www.secure-mydomain.com.
Any suggestions appreciated.
BigV
Progress is achieving the same error a different way!
-
Flash Gordon
Hmm, as the help states "The URL can be HTTP or, for secure uploads, HTTPS."
and there is no comment about https in livedocs it should work.
What i would guess:
-You are not using a relative/correct path to the upload-script.
-The upload script maybe requires a login
-You forgot to upload the upload script to the https server
Hard to tell the error with that little information..
My letters on the F1 key have faded, how are yours today?
-
It is actually the same location.
Position on the server is D:\inetpub\wwwroot\domainname
http addresses this to http://www.domainname.com
https addresses it to https://www.secure-domainname.com
What I am saying is that both http & https are reading the exact same files in the exact same location, so why does http work perfectly, and https fails?
And yes I do have "always" set for script access.
I think this is the realm of the UBER GURU, do you exist?
Progress is achieving the same error a different way!
-
Flash Gordon
this : "D:\inetpub\wwwroot\domainname" maybe only relevant inside the php script.
It is about the location of the php script, that might be wrong.
What is the (http/s-)location of the html/swf/php on both servers?
How exactly is the php called with FileReference.upload?
Are you probably cross referencing between the domains?
Are u somewhere using absolute http://-paths instead of relative paths?
It is really hard to tell, what is going wrong, without knowing any of
your code/file locations. Debugging your site with live-http-headers
might help as well, but as you don't publish it your domain.....
[edit]
I just noticed that, you are using the same wwwroot for both domains..
but the questions stay the same.
Last edited by McUsher; 12-09-2005 at 10:21 AM.
My letters on the F1 key have faded, how are yours today?
-
Files only exist in one location
D:\inetpub\wwwroot\domainname is the real location of the files.
Both http and https point to this same location.
I use relative addresses so that it can stay within the calling domain.
However I have even tried absolutes, the issue is http/https even though Macromedia says it works on https, it does not.
Just so it is clear, There is only one server, one set of files, and both http and https go to these same files, http works, https does not.
I am using the filereference upload example as included with Flash8 support files.
The only question mark I have is are there different folder permissions for http and https on my server even though it points to a single folder on a single computer that is set to 777?
If so, that is the only other posible variable apart from http/https, and if that is the case how do i adjust permissions for https folders differently to http, isn't it just Windows folder permissions in an IIS server?
at wits end !!!
Progress is achieving the same error a different way!
-
https://www.secure-domainname.com:443 solves the problem.
You must add 443 (ssl server port number).
-
Flash Gordon
Port will be automatically chosen by the browser, according to the protocol:
http:// > 80
https:// > 443
ftp:// > 21
So why should this do any difference ?!
My letters on the F1 key have faded, how are yours today?
-
Because this is the only way fileReference will work with https.
-
Flash Gordon
But only if you use absolute paths?!
That would mean that you can't use relative paths with https and file reference? I would like to doubt it, but i don't actually know it. As normally any request in flash would be passed to the browser, modified to a proper request and send to the server.. the reply would go then directly back to flash.
My letters on the F1 key have faded, how are yours today?
-
Ripped my App apart
Rather than hassle any longer on this I ripped the uploader out of my app and created a standalone uploader which I use in http. The rest of the app is https.
Thanks for the suggestions guys, never actually tried the 443 solution, sorry it came a little too late.
Regards.
Progress is achieving the same error a different way!
-
Yes , https request with FileReference upload require absolute path so,
https://domain.com:443/upload.php.
More discussion about https upload here
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|