Sponsored Content
Full Discussion: Apache upload problems.
Top Forums Web Development Apache upload problems. Post 302252955 by Neo on Thursday 30th of October 2008 05:31:56 PM
Old 10-30-2008
What is the application you are using to upload to Apache?
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Apache Server 1.3.20 Icons Missing and Other Problems...Please Help!!!!

Hi everyone. Okay here are a couple of my problems and hopefully you guys can help me out. Problem 1: i have 2 website that are being hosted on a webserver. The webserver is running redhat 8x and running apache 1.3.20. To make it a little clearer, lets say website A and website B. Both... (1 Reply)
Discussion started by: crazycelicagts
1 Replies

2. UNIX for Dummies Questions & Answers

Problems with Apache setup

I downloaded Apache 1.3.27.tar.gz into my SCO u/install directory. However, to begin with, I couldn't untar the file using the " tar xvf apache-1.3.27.tar.gz" command, so I used winzip from a windows computer on our network. Winzip untarred the file and I transferred the files to the SCO... (2 Replies)
Discussion started by: cstovall
2 Replies

3. UNIX for Dummies Questions & Answers

Problems with Apache setup

I posted a problem with the forum on 11/18/02. Unfortunately, I have been out of town. Today is the first chance I've had to try the suggestions that were made. Here is the output from the ls -l configure* command: -rw-r--r-- 1root sys 58230 May 21 2002 configure When I type " sh... (2 Replies)
Discussion started by: cstovall
2 Replies

4. Solaris

problems with Apache

I have a Solaris 8 box and need to install Apache 2.0.55 on it. First thing I tried was compiling from source code. During the make phase, I got the following errors: Then I tried downloading the binaries. I tried the one available from Apache's site and the one from sunfreeware.com, with... (3 Replies)
Discussion started by: GKnight
3 Replies

5. Solaris

Problems starting apache 1.3 with mysql

I've been working on a project to replace one of the my group's primary NIS servers. It also runs mysql and apache, as it is the host for the our team's hardware tracking database and website. Its running apache 1.3, and for some odd reason, I can't get apache to start on system boot. The... (1 Reply)
Discussion started by: godspunk32
1 Replies

6. Web Development

Apache Problems.

Hello guys I have been running a LAMP stack for awhile now but have never really explored the server side end of things. What I am trying to do is have a python script on a website run a bash command. This will accomplish a system so someone can create an account for proxy access via a webpage.... (45 Replies)
Discussion started by: darkphaux
45 Replies

7. Web Development

Problems starting Apache 2.0.54

Hi, I just installed Apache 2.0.54 and when I try and start httpd I get mohit@mohit-desktop:/sw/pkg/apache/bin$ ./httpd -k start httpd: Could not determine the server's fully qualified domain name, using 127.0.1.1 for ServerName (13): make_sock: could not bind to address :80 no listening... (1 Reply)
Discussion started by: mojoman
1 Replies

8. Solaris

Problems with 2 NICS and Apache

I have a Solaris 10 box that has 2 Ethernet connections. One is 172.21.0.150, this is on the main internal LAN. The other is 172.16.0.50 this is the DMZ. I have Apache 2.0.59, I do not care which it Listens to but the main one for it is 172.16.0.50 (DMZ) which I have been explicit (Listen... (1 Reply)
Discussion started by: crowman
1 Replies

9. Programming

File upload problems

When I upload image files they have the same extension twice. And my script doesn't show it even it the path is correct. Some scripts copy the file from the tmp dir server to the required directory, while others just move it. What happens to the files that were just copied? Do they stay... (1 Reply)
Discussion started by: AimyThomas
1 Replies

10. Web Development

Problems with Apache Virtual Host

I am attempting to add virtual hosts to an apache web server, which has this current configuration: <VirtualHost *:80> ServerAdmin webmaster@localhost DocumentRoot /var/www <Directory /> Options FollowSymLinks AllowOverride None ... (27 Replies)
Discussion started by: Corona688
27 Replies
Apache2::Upload(3pm)					User Contributed Perl Documentation				      Apache2::Upload(3pm)

NAME
Apache2::Upload - Methods for dealing with file uploads. SYNOPSIS
use Apache2::Upload; $req = Apache2::Request->new($r); $upload = $req->upload("foo"); $size = $upload->size; # three methods to get at the upload's contents ... slurp, fh, io $upload->slurp($slurp_data); read $upload->fh, $fh_data, $size; ok $slurp_data eq $fh_data; my $io = $upload->io; print while <$io>; DESCRIPTION
Apache2::Upload is a new module based on the original package included in Apache2::Request 1.X. Users requiring the upload API must now "use Apache2::Upload", which adds the "upload" method to Apache2::Request. Apache2::Upload is largely backwards-compatible with the original 1.X API. See the "PORTING from 1.X" section below for a list of known issues. This manpage documents the Apache2::Upload package. Apache2::Upload name $upload->name() The name of the HTML form element which generated the upload. filename $upload->filename() The (client-side) filename as submitted in the HTML form. Note: some agents will submit the file's full pathname, while others may submit just the basename. fh $upload->fh() Creates filehandle reference to the upload's spooled tempfile, which contains the full contents of the upload. io $upload->io() Creates a tied IO handle. This method is a more efficient version of "fh", but with "io" the handle ref returned is not seekable. It is tied to an APR::Request::Brigade object, so you may use the brigade API on the tied object if you want to manipulate the IO stream (beyond simply reading from it). The returned reference is actually an object which has "read" and "readline" methods available. However these methods are just syntactic sugar for the underlying "READ" and "READLINE" methods from APR::Request::Brigade. $io = $upload->io; print while $io->read($_); # equivalent to: tied(*$io)->READ($_) See READ and READLINE below for additional notes on their usage. bb $upload->bb() $upload->bb($set) Get/set the APR::Brigade which represents the upload's contents. size $upload->size() Returns the size of the upload in bytes. info $upload->info() $upload->info($set) Get/set the additional header information table for the uploaded file. Returns a hash reference tied to the APR::Table class. An optional $table argument can be passed to reassign the upload's internal (apr_table_t) info table to the one $table represents. my $info = $upload->info; while (my($hdr_name, $hdr_value) = each %$info) { # ... } # fetch upload's Content-Type header my $type = $upload->info->{"Content-type"}; type $upload->type() Returns the MIME type of the given Apache2::Upload object. my $type = $upload->type; #same as my $content_type = $upload->info->{"Content-Type"}; $content_type =~ s/;.*$//ms; link $upload->link() To avoid recopying the upload's internal tempfile brigade on a *nix-like system, link will create a hard link to it: my $upload = $req->upload('foo'); $upload->link("/path/to/newfile") or die sprintf "link from '%s' failed: $!", $upload->tempname; Typically the new name must lie on the same device and partition as the brigade's tempfile. If this or any other reason prevents the OS from linking the files, "link()" will instead copy the temporary file to the specified location. slurp $upload->slurp($contents) Reads the full contents of a file upload into the scalar argument. The return value is the length of the file. my $size = $upload->slurp($contents); tempname $upload->tempname() Provides the name of the spool file. my $tempname = $upload->tempname; APR
::Request::Brigade This class is derived from APR::Brigade, providing additional methods for TIEHANDLE, READ and READLINE. To be memory efficient, these methods delete buckets from the brigade as soon as their data is actually read, so you cannot "seek" on handles tied to this class. Such handles have semantics similar to that of a read-only socket. TIEHANDLE APR::Request::Brigade->TIEHANDLE($bb) Creates a copy of the bucket brigade represented by $bb, and blesses that copy into the APR::Request::Brigade class. This provides syntactic sugar for using perl's builtin "read", "readline", and "<>" operations on handles tied to this package: use Symbol; $fh = gensym; tie *$fh, "APR::Request:Brigade", $bb; print while <$fh>; READ $bb->READ($contents) $bb->READ($contents, $length) $bb->READ($contents, $length, $offset) Reads data from the brigade $bb into $contents. When omitted $length defaults to "-1", which reads the first bucket into $contents. A positive $length will read in $length bytes, or the remainder of the brigade, whichever is greater. $offset represents the index in $context to read the new data. READLINE $bb->READLINE() Returns the first line of data from the bride. Lines are terminated by linefeeds (the '12' character), but we may eventually use $/ instead. PORTING from 1.X o "$upload->next()" is no longer available; please use the "APR::Request::Param::Table" API when iterating over upload entries. o "info($header_name)" is replaced by "info($set)". o "type()" returns only the MIME-type portion of the Content-Type header. SEE ALSO
APR::Request::Param::Table, APR::Request::Error, Apache2::Request, APR::Table(3) COPYRIGHT
Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to You under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. perl v5.10.1 2010-11-25 Apache2::Upload(3pm)
All times are GMT -4. The time now is 08:14 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy