I have written a code to upload files to a directory but it only works if something is place in the upload files field. The problem arises when the upload file field is empty and you make changes to some of the other fields on the same form and it will not work. This is for adding and editing...
I have written a code to upload files to a directory but it only works if something is place in the upload files field. The problem arises when the upload file field is empty and you make changes to some of the other fields on the same form and it will not work.
Where am I going wrong? How...
jaa,
now uploading a file to the add section works. this is the code
##--------
# uploadImage()
##--------
sub uploadImage
{
# need this transfer the right size of the file
$upload_logo = param('logo');
$logo = lc(join '', split / /,(split/\\/, param("logo"))[-1]);
# $upfile =...
Dear jaa,
thank you for your reply. I should change $upload_log to $upfile like this
##--------
# uploadImage()
##--------
sub uploadImage
{
$upfile = lc(join '', split / /,(split/\\/, param("logo"))[-1]);
$abs_file_to_create .=...
Dear wise-one,
I have been trying to get the upload file feature to work. It is almost working but one problem, it is not transferring the file size. the file is transfer in the right location and file name on the web server but the file size is 0.
another question "binmode" is this...
Dear wise-one,
I am getting close but still need your wisdom to solve my problem.
ADD FEATURE
I want to add an upload feature to:
add code
--------
##--------
# uploadImage()
##--------
sub uploadImage
{
$upfile = lc(join '', split / /,(split/\\/, param("logo"))[-1])...
Rieekan,
I got it somewhat working. it transfer the file from desktop to web server but the size is 0 and I am not sure it is transferred in binary (if this is a worry).
code
----
##--------
# uploadImage()
##--------
sub uploadImage
{
$upfile = lc(join '', split / /,(split/\\/...
Rieekan,
thank you for your input. I've tried what you've suggested and it didn't work. I must be doing something wrong. please look at the code below, including your suggestion inserted.
##--------
# uploadImage()
##--------
sub uploadImage
{
$upfile = lc(join '', split / /,(split/\\/...
sleipnir214,
any response for the above? I have typed it below for your convenience.
for the line you've mentioned above
$abs_file_to_create .= "tempfile";
I should go ????
$abs_file_to_create .= "$logo";
note:
$logo is the value of the input field
Thank you for your...
Thank you for your response.
for the line you've mentioned above
$abs_file_to_create .= "tempfile";
I should go ????
$abs_file_to_create .= "$logo";
note:
$logo is the value of the input field
Thank you for your knowledge, wisdom and time!
There
Hi,
I went over the the posting in this thread and TRIED and TRIED to make the coding work. I must be doing something wrong. PLEASE HELP.
in the html coding
------------------
<form action="script_name.cgi" method="post" enctype="multipart/form-data">
<input...
Hi,
I went over the the posting in this thread and TRIED and TRIED to make the coding work. I must be doing something wrong. PLEASE HELP.
in the html coding
------------------
<form action="script_name.cgi" method="post" enctype="multipart/form-data">
<input...
LightElf,
thank you for reply.
1.0 line: if ($name eq "$name1") {
===========
I need to keep it as $name eq $name1 due to calling of the previous webpage.
As you suggested, it didn't work. any suggestions?
Objectives: sort by $company of companies who have the same $name.
The...
Mike,
I apprepriate your quick response. I did what you have recommended but it didn't work. Could you look over my coding below and see where I went wrong.
Objective: sort by $company
open (LISTDATA, "$database");
@indata = <LISTDATA>;
close (LISTDATA);
foreach $entries...
I am trying to sort in perl. I need HELP. It is not working for me and I have tried everything and anything. Please advise me what to do.
example of database
name|company|address|state
I want to sort in company both in asc and desc
open (LISTDATA, "$database");
@indata =...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.