wrote in
news: oups.com:
>
> Gunnar Hjalmarsson wrote:
>> wrote:
>> > I'm using the procedural upload() function from CGI.pm.
>> > In this line:
>> > my $fd_file = upload( 'file' ) or die( "upload() ( $! )" );
>>
....
>> > Can you please help me solve this problem?
>>
>> Use the CPAN module CGI::UploadEasy.
>
> I can't do that. I want the program to generate a random name for
> every file uploaded, and using UploadEasy it looks impossible.
> In addition, UploadEasy is based on CGI.pm, and uses CGI.pm's upload()
> function too, so there is no reason why it should work.
I have not used Gunnar's module, however, I looked at the source code to
learn from it. Looking at it again, I don't see why it should not work.
On the other hand, I note that we have not seen any of your code, so we
have no idea if your problem is really related to CGI.pm or your own
code.
If I were you, I would write a test script using CGI::UploadEasy, and
see if the upload succeeds in the simple case. If it does, then you will
have shown that the problem is related to your code.
Regardless of wheter CGI::UploadEasy works for you, post a short but
complete example exhibiting the problem.
Sinan