[development] Upload problems in D7
Randy Fay
randy at randyfay.com
Sat Jun 12 13:06:18 UTC 2010
Hi Bob -
The first thing to do is to leave the java applet out of the equation. Just
access your callback URL in a browser. Hit
http://example.com/my/path/to/callback. Do you get a 404? Then your module
is not properly implementing that path or you've failed to rebuild the menu
router after changing the code. First, get the URL to respond to you (by
either rebuilding the menu router/clearing all caches, or by fixing your
code) and then try it out with your java applet.
Good luck,
-Randy
On Sat, Jun 12, 2010 at 2:42 AM, Bob Hutchinson <hutchlists at midwales.com>wrote:
> I am upgrading a module from D6 to D7 and have stumbled over a problem with
> uploading files.
>
> I am using a java applet to collect the filenames and upload them. The
> applet
> requires a full URL (eg http://example.com/my/path/to/callback) as it is
> running on its own so it cannot *know* what FQDN to prepend to a relative
> path. The apache logs show a 404 file not found error and watchdog also
> logs
> the error like so:
> http://example.com/http://example.com/my/path/to/callback
>
> All this works well in D6 and I have been very careful in the upgrade. The
> callback never arrives. It looks like D7 assumes or even requires a
> relative
> path and is prepending http://example.com/ automatically.
>
> Any pointers would be much appreciated ;-)
>
> TIA
> --
> -----------------
> Bob Hutchinson
> Midwales dot com
> -----------------
>
--
Randy Fay
Drupal Module and Site Development
randy at randyfay.com
+1 970.462.7450
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.drupal.org/pipermail/development/attachments/20100612/051a948f/attachment.html
More information about the development
mailing list